generator: Fix CompareWithString test.

This type of test was not used, and in fact the generated test
simply didn't work.
This commit is contained in:
Richard W.M. Jones
2012-03-16 14:10:40 +00:00
parent c8630300b8
commit 6bee63beb4

View File

@@ -665,7 +665,7 @@ and generate_one_test_body name i test_name init test =
pr " }\n"
| CompareWithString (field, expected) ->
pr " if (STRNEQ (r->%s, \"%s\")) {\n" field expected;
pr " fprintf (stderr, \"%s: %s was \"%%s\", expected \"%s\"\\n\",\n"
pr " fprintf (stderr, \"%s: %s was \\\"%%s\\\", expected \\\"%s\\\"\\n\",\n"
test_name field expected;
pr " r->%s);\n" field;
pr " return -1;\n";