diff options
-rw-r--r-- | tests/test_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_common.c b/tests/test_common.c index e6c32f6b..dae485f9 100644 --- a/tests/test_common.c +++ b/tests/test_common.c @@ -134,11 +134,11 @@ int test_succ(int result, const char *preamble, const char *desc, const char *comment) { if (result == 0) { - fprintf(stderr, "%s: %s, %s ... " COL_GREEN "PASSED\n" COL_STOP, - preamble, desc, comment); + fprintf(stderr, "%s: %s ... " COL_GREEN "PASSED\n" COL_STOP, + preamble, comment ? comment : desc); } else { - fprintf(stderr, "%s: %s, %s ... " COL_RED "FAILED\n" COL_STOP, - preamble, desc, comment); + fprintf(stderr, "%s: %s ... " COL_RED "FAILED\n" COL_STOP, + preamble, comment ? comment : desc); fprintf(stderr, " Expected SUCCESS, got: 0x%x (%d)\n", result, result); gTestSuccess = 0; } |