From: Daan De Meyer Date: Tue, 27 Aug 2024 10:15:05 +0000 (+0200) Subject: tests: Remove some unnecessary quotes X-Git-Tag: v257-rc1~611^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3862a227fbfe8d89a4e39671a087522c36844a0c;p=thirdparty%2Fsystemd.git tests: Remove some unnecessary quotes --- diff --git a/src/shared/tests.h b/src/shared/tests.h index c1a282c62d2..eb848b081f4 100644 --- a/src/shared/tests.h +++ b/src/shared/tests.h @@ -360,7 +360,7 @@ static inline int run_test_table(void) { char _sexpr2[DECIMAL_STR_MAX(typeof(expr2))]; \ xsprintf(_sexpr1, DECIMAL_STR_FMT(_expr1), _expr1); \ xsprintf(_sexpr2, DECIMAL_STR_FMT(_expr2), _expr2); \ - log_error("%s:%i: Assertion failed: expected \"%s == %s\", but \"%s != %s\"", \ + log_error("%s:%i: Assertion failed: expected \"%s == %s\", but %s != %s", \ PROJECT_FILE, __LINE__, #expr1, #expr2, _sexpr1, _sexpr2); \ abort(); \ } \ @@ -375,7 +375,7 @@ static inline int run_test_table(void) { char _sexpr2[DECIMAL_STR_MAX(typeof(expr2))]; \ xsprintf(_sexpr1, DECIMAL_STR_FMT(_expr1), _expr1); \ xsprintf(_sexpr2, DECIMAL_STR_FMT(_expr2), _expr2); \ - log_error("%s:%i: Assertion failed: expected \"%s >= %s\", but \"%s < %s\"", \ + log_error("%s:%i: Assertion failed: expected \"%s >= %s\", but %s < %s", \ PROJECT_FILE, __LINE__, #expr1, #expr2, _sexpr1, _sexpr2); \ abort(); \ } \ @@ -390,7 +390,7 @@ static inline int run_test_table(void) { char _sexpr2[DECIMAL_STR_MAX(typeof(expr2))]; \ xsprintf(_sexpr1, DECIMAL_STR_FMT(_expr1), _expr1); \ xsprintf(_sexpr2, DECIMAL_STR_FMT(_expr2), _expr2); \ - log_error("%s:%i: Assertion failed: expected \"%s <= %s\", but \"%s > %s\"", \ + log_error("%s:%i: Assertion failed: expected \"%s <= %s\", but %s > %s", \ PROJECT_FILE, __LINE__, #expr1, #expr2, _sexpr1, _sexpr2); \ abort(); \ } \ @@ -405,7 +405,7 @@ static inline int run_test_table(void) { char _sexpr2[DECIMAL_STR_MAX(typeof(expr2))]; \ xsprintf(_sexpr1, DECIMAL_STR_FMT(_expr1), _expr1); \ xsprintf(_sexpr2, DECIMAL_STR_FMT(_expr2), _expr2); \ - log_error("%s:%i: Assertion failed: expected \"%s != %s\", but \"%s == %s\"", \ + log_error("%s:%i: Assertion failed: expected \"%s != %s\", but %s == %s", \ PROJECT_FILE, __LINE__, #expr1, #expr2, _sexpr1, _sexpr2); \ abort(); \ } \ @@ -420,7 +420,7 @@ static inline int run_test_table(void) { char _sexpr2[DECIMAL_STR_MAX(typeof(expr2))]; \ xsprintf(_sexpr1, DECIMAL_STR_FMT(_expr1), _expr1); \ xsprintf(_sexpr2, DECIMAL_STR_FMT(_expr2), _expr2); \ - log_error("%s:%i: Assertion failed: expected \"%s > %s\", but \"%s <= %s\"", \ + log_error("%s:%i: Assertion failed: expected \"%s > %s\", but %s <= %s", \ PROJECT_FILE, __LINE__, #expr1, #expr2, _sexpr1, _sexpr2); \ abort(); \ } \ @@ -435,7 +435,7 @@ static inline int run_test_table(void) { char _sexpr2[DECIMAL_STR_MAX(typeof(expr2))]; \ xsprintf(_sexpr1, DECIMAL_STR_FMT(_expr1), _expr1); \ xsprintf(_sexpr2, DECIMAL_STR_FMT(_expr2), _expr2); \ - log_error("%s:%i: Assertion failed: expected \"%s < %s\", but \"%s >= %s\"", \ + log_error("%s:%i: Assertion failed: expected \"%s < %s\", but %s >= %s", \ PROJECT_FILE, __LINE__, #expr1, #expr2, _sexpr1, _sexpr2); \ abort(); \ } \ @@ -470,7 +470,7 @@ static inline int run_test_table(void) { typeof(expr1) _expr1 = (expr1); \ typeof(expr2) _expr2 = (expr2); \ if (!sd_id128_equal(_expr1, _expr2)) { \ - log_error("%s:%i: Assertion failed: \"%s == %s\", but \"%s != %s\"", \ + log_error("%s:%i: Assertion failed: \"%s == %s\", but %s != %s", \ PROJECT_FILE, __LINE__, \ #expr1, #expr2, \ SD_ID128_TO_STRING(_expr1), SD_ID128_TO_STRING(_expr2)); \ @@ -483,7 +483,7 @@ static inline int run_test_table(void) { typeof(expr1) _expr1 = (expr1); \ typeof(expr2) _expr2 = (expr2); \ if (sd_id128_equal(_expr1, _expr2)) { \ - log_error("%s:%i: Assertion failed: \"%s != %s\", but \"%s == %s\"", \ + log_error("%s:%i: Assertion failed: \"%s != %s\", but %s == %s", \ PROJECT_FILE, __LINE__, \ #expr1, #expr2, \ SD_ID128_TO_STRING(_expr1), SD_ID128_TO_STRING(_expr2)); \