fix (I think?) the test case failure detection login in benchmark.c

This commit is contained in:
Sven M. Hallberg 2013-05-11 21:44:01 +02:00
parent 62d48d2f5a
commit 207fc6adef

View file

@ -58,8 +58,8 @@ HBenchmarkResults *h_benchmark__m(HAllocator* mm__, HParser* parser, HParserTest
res_unamb = h_write_result_unamb(res->ast);
} else
res_unamb = NULL;
if ((res_unamb == NULL && tc->output_unambiguous == NULL)
|| (strcmp(res_unamb, tc->output_unambiguous) != 0)) {
if ((res_unamb == NULL && tc->output_unambiguous != NULL)
|| (res_unamb != NULL && strcmp(res_unamb, tc->output_unambiguous) != 0)) {
// test case failed...
fprintf(stderr, "failed\n");
// We want to run all testcases, for purposes of generating a