diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-08-27 12:15:05 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-08-27 12:15:05 +0200 |
commit | 3862a227fbfe8d89a4e39671a087522c36844a0c (patch) | |
tree | a0e1870988389e1cdc76ce643503e0f472aea2af /src | |
parent | mkosi: Stop using git commit timestamps for package releases (diff) | |
download | systemd-3862a227fbfe8d89a4e39671a087522c36844a0c.tar.xz systemd-3862a227fbfe8d89a4e39671a087522c36844a0c.zip |
tests: Remove some unnecessary quotes
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/tests.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/shared/tests.h b/src/shared/tests.h index c1a282c62d..eb848b081f 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)); \ |