From: Frank Stettner Date: Mon, 19 Feb 2018 14:31:30 +0000 (+0100) Subject: tests: Fix incomplete fail message for locale tests. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d8df3c2a01883d0380561158ab4a34e172f4f2c4;p=libsigrok.git tests: Fix incomplete fail message for locale tests. --- diff --git a/tests/strutil.c b/tests/strutil.c index a629486d..abc3e897 100644 --- a/tests/strutil.c +++ b/tests/strutil.c @@ -37,9 +37,10 @@ static void test_vsnprintf(const char *expected, char *format, ...) len = vsnprintf(s, len, format, args); va_end(args); - fail_unless(s != NULL, "len = %i, s = s", len); + fail_unless(s != NULL, + "Invalid result for '%s': len = %i.", expected, len); fail_unless(!strcmp(s, expected), - "Invalid result for '%s': %s.", expected, s); + "Invalid result for '%s': %s.", expected, s); g_free(s); } #endif @@ -57,7 +58,8 @@ static void test_sr_vsnprintf_ascii(const char *expected, char *format, ...) len = sr_vsnprintf_ascii(s, len, format, args); va_end(args); - fail_unless(s != NULL, "len = %i, s = s", len); + fail_unless(s != NULL, + "Invalid result for '%s': len = %i.", expected, len); fail_unless(!strcmp(s, expected), "Invalid result for '%s': %s.", expected, s); g_free(s);