Print failing assembly text in CompileSuccessfully().
authorDejan Mircevski <deki@google.com>
Fri, 4 Sep 2015 12:51:52 +0000 (08:51 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:52:01 +0000 (12:52 -0400)
test/TestFixture.h

index cfea708..2e00abf 100644 (file)
@@ -71,7 +71,7 @@ class TextToBinaryTestBase : public T {
     spv_result_t status =
         spvTextToBinary(&this->text, opcodeTable, operandTable, extInstTable,
                         &binary, &diagnostic);
-    EXPECT_EQ(SPV_SUCCESS, status);
+    EXPECT_EQ(SPV_SUCCESS, status) << text;
     SpirvVector code_copy;
     if (status == SPV_SUCCESS) {
       code_copy = SpirvVector(binary->code, binary->code + binary->wordCount);