Fix failing tests.
authorLei Zhang <antiagainst@google.com>
Thu, 30 Jul 2015 14:30:28 +0000 (10:30 -0400)
committerLei Zhang <antiagainst@google.com>
Thu, 30 Jul 2015 19:21:42 +0000 (15:21 -0400)
The generator number is set to SPV_GENERATOR_KHRONOS in the
spvBinaryHeaderSet function, so tests should catch up.

test/TextToBinary.cpp

index e36d10a..ea36de8 100644 (file)
@@ -92,7 +92,7 @@ OpTypeVector %15 4 2
   // TODO: Verify binary
   ASSERT_EQ(SPV_MAGIC_NUMBER, binary->code[SPV_INDEX_MAGIC_NUMBER]);
   ASSERT_EQ(SPV_VERSION_NUMBER, binary->code[SPV_INDEX_VERSION_NUMBER]);
-  ASSERT_EQ(SPV_GENERATOR_CODEPLAY, binary->code[SPV_INDEX_GENERATOR_NUMBER]);
+  ASSERT_EQ(SPV_GENERATOR_KHRONOS, binary->code[SPV_INDEX_GENERATOR_NUMBER]);
   ASSERT_EQ(16, binary->code[SPV_INDEX_BOUND]);  // TODO: Bound?
   ASSERT_EQ(0, binary->code[SPV_INDEX_SCHEMA]);  // Reserved: schema