From: Lei Zhang Date: Thu, 30 Jul 2015 14:30:28 +0000 (-0400) Subject: Fix failing tests. X-Git-Tag: upstream/2018.6~1518^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a7315498ff573c043e687dfcd6306872f8b1a78;p=platform%2Fupstream%2FSPIRV-Tools.git Fix failing tests. The generator number is set to SPV_GENERATOR_KHRONOS in the spvBinaryHeaderSet function, so tests should catch up. --- diff --git a/test/TextToBinary.cpp b/test/TextToBinary.cpp index e36d10a..ea36de8 100644 --- a/test/TextToBinary.cpp +++ b/test/TextToBinary.cpp @@ -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