fix (I think?) the test case failure detection login in benchmark.c
This commit is contained in:
parent
62d48d2f5a
commit
207fc6adef
1 changed files with 2 additions and 2 deletions
|
|
@ -58,8 +58,8 @@ HBenchmarkResults *h_benchmark__m(HAllocator* mm__, HParser* parser, HParserTest
|
||||||
res_unamb = h_write_result_unamb(res->ast);
|
res_unamb = h_write_result_unamb(res->ast);
|
||||||
} else
|
} else
|
||||||
res_unamb = NULL;
|
res_unamb = NULL;
|
||||||
if ((res_unamb == NULL && tc->output_unambiguous == NULL)
|
if ((res_unamb == NULL && tc->output_unambiguous != NULL)
|
||||||
|| (strcmp(res_unamb, tc->output_unambiguous) != 0)) {
|
|| (res_unamb != NULL && strcmp(res_unamb, tc->output_unambiguous) != 0)) {
|
||||||
// test case failed...
|
// test case failed...
|
||||||
fprintf(stderr, "failed\n");
|
fprintf(stderr, "failed\n");
|
||||||
// We want to run all testcases, for purposes of generating a
|
// We want to run all testcases, for purposes of generating a
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue