instead of TEST_BOOL(strcmp(...), false).  The test now prints the two
strings if the test fails, making it easier to troubleshoot problems.
---
 lib/util/tests/stringutils-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/util/tests/stringutils-test.c 
b/lib/util/tests/stringutils-test.c
index e425999..a2d2d97 100644
--- a/lib/util/tests/stringutils-test.c
+++ b/lib/util/tests/stringutils-test.c
@@ -121,7 +121,7 @@ static bool test_scrub_for_print__escape_chars(
     size_t len_out;
 
     scrub_for_print(dst, src, DST_LEN, &len_out, "bd");
-    TEST_BOOL(strcmp(dst, "a\\bc\\de"), false);
+    TEST_STR(dst, ==, "a\\bc\\de");
     TEST(size_t, "%zu", len_out, ==, strlen(src) + 2);
 
     return true;
-- 
2.4.3


------------------------------------------------------------------------------
_______________________________________________
rpstir-devel mailing list
rpstir-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpstir-devel

Reply via email to