1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-12 21:57:27 +03:00

test-loopback: suppress warning about ignored unused result

(cherry picked from commit db5d86f5b9fd86231e841df5dc8d0fd993e00761)
(cherry picked from commit accda51ef6ffaee074662df5b28014c9babae543)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2023-10-03 14:06:58 +02:00 committed by Luca Boccassi
parent ee58332333
commit e1baefbb1f

View File

@ -25,13 +25,17 @@ TEST_RET(loopback_setup) {
return log_error_errno(r, "loopback: %m");
log_info("> ipv6 main");
system("ip -6 route show table main");
/* <0 → fork error, ==0 → success, >0 → error in child */
assert_se(system("ip -6 route show table main") >= 0);
log_info("> ipv6 local");
system("ip -6 route show table local");
assert_se(system("ip -6 route show table local") >=0);
log_info("> ipv4 main");
system("ip -4 route show table main");
assert_se(system("ip -4 route show table main") >= 0);
log_info("> ipv4 local");
system("ip -4 route show table local");
assert_se(system("ip -4 route show table local") >= 0);
return EXIT_SUCCESS;
}