From 207fc6adeff93fb58d2097820ebb90b57b70c1ca Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Sat, 11 May 2013 21:44:01 +0200 Subject: [PATCH] fix (I think?) the test case failure detection login in benchmark.c --- src/benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/benchmark.c b/src/benchmark.c index 918f87c..5c92706 100644 --- a/src/benchmark.c +++ b/src/benchmark.c @@ -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