From: Michael Tremer Date: Thu, 25 Feb 2021 11:43:12 +0000 (+0000) Subject: tests: Show received string as well as expected string X-Git-Tag: 0.9.28~1285^2~700 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caf0b3b8cb49d1d99b2fb7d1309d2f853ee0afb6;p=pakfire.git tests: Show received string as well as expected string Signed-off-by: Michael Tremer --- diff --git a/tests/testsuite.h b/tests/testsuite.h index f48b438e5..cbd10df30 100644 --- a/tests/testsuite.h +++ b/tests/testsuite.h @@ -66,8 +66,8 @@ int testsuite_run(); #define ASSERT_STRING_EQUALS(string, value) \ do { \ if (strcmp(string, value) != 0) { \ - LOG_ERROR("Failed assertion: " #string " != " #value " %s:%d %s\n", \ - __FILE__, __LINE__, __PRETTY_FUNCTION__); \ + LOG_ERROR("Failed assertion: " #string " (%s) != " #value " %s:%d %s\n", \ + string, __FILE__, __LINE__, __PRETTY_FUNCTION__); \ return EXIT_FAILURE; \ } \ } while (0)