23 lines
810 B
Diff
23 lines
810 B
Diff
|
From 58d199cbe00e8a5ef5858ffc7991a346b9f3469e Mon Sep 17 00:00:00 2001
|
||
|
From: Orion Poplawski <orion@nwra.com>
|
||
|
Date: Thu, 17 Sep 2020 22:26:04 -0600
|
||
|
Subject: [PATCH] Fix ck_assert_msg() call
|
||
|
|
||
|
---
|
||
|
unit_tests/check_jsnorm.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/unit_tests/check_jsnorm.c b/unit_tests/check_jsnorm.c
|
||
|
index 5067a21a55..64f6bf8b37 100644
|
||
|
--- a/unit_tests/check_jsnorm.c
|
||
|
+++ b/unit_tests/check_jsnorm.c
|
||
|
@@ -247,7 +247,7 @@ static void tokenizer_test(const char *in, const char *expected, int split)
|
||
|
fd = open(filename, O_RDONLY);
|
||
|
if (fd < 0) {
|
||
|
jstest_teardown();
|
||
|
- ck_assert_msg("failed to open output file: %s", filename);
|
||
|
+ ck_assert_msg(0, "failed to open output file: %s", filename);
|
||
|
}
|
||
|
|
||
|
diff_file_mem(fd, expected, len);
|