test: update log message and use SYNTHETIC_ERRNO()

Follow-up for ce5a6d5307.

Addresses https://github.com/systemd/systemd/pull/30049#discussion_r1395453408.
This commit is contained in:
Yu Watanabe
2023-12-10 12:51:17 +00:00
committed by Luca Boccassi
parent ced3e6bc0e
commit ef8ba77576
+1 -2
View File
@@ -432,8 +432,7 @@ static void* client2(void *p) {
if (r < 0)
log_debug("Failed to issue method call: %s", bus_error_message(&error, r));
else {
log_error("Slow call unexpectedly succeed.");
r = -ENOANO;
r = log_error_errno(SYNTHETIC_ERRNO(ENOANO), "Slow call unexpectedly succeeded.");
goto finish;
}