mirror of
https://github.com/systemd/systemd.git
synced 2026-08-06 16:10:59 +00:00
test-loopback: suppress warning about ignored unused result
This commit is contained in:
committed by
Luca Boccassi
parent
f9a0ee7554
commit
db5d86f5b9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user