mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
test: do not pass return value to log_error_errno() on success
This commit is contained in:
parent
0f52a1107e
commit
32b0e689d6
@ -335,8 +335,8 @@ static inline int run_test_table(void) {
|
||||
({ \
|
||||
typeof(expr) _result = (expr); \
|
||||
if (_result >= 0) { \
|
||||
log_error_errno(_result, "%s:%i: Assertion failed: expected \"%s\" to fail, but it succeeded", \
|
||||
PROJECT_FILE, __LINE__, #expr); \
|
||||
log_error("%s:%i: Assertion failed: expected \"%s\" to fail, but it succeeded.", \
|
||||
PROJECT_FILE, __LINE__, #expr); \
|
||||
abort(); \
|
||||
} \
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user