mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
tests: Don't return -1 as program return value
In cases we use -1 for failure internally we still must return EXIT_FAILURE. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
3a11950af2
commit
9afc26502d
@ -146,8 +146,7 @@ mymain(void)
|
||||
"server.2.type=tcp,"
|
||||
"server.2.host=example.com");
|
||||
|
||||
return ret;
|
||||
|
||||
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
}
|
||||
|
||||
VIR_TEST_MAIN(mymain)
|
||||
|
@ -156,7 +156,7 @@ mymain(void)
|
||||
TC " filter add dev eth0 parent ffff: protocol all u32 match u32 0 0 "
|
||||
"police rate 5kbps burst 7kb mtu 64kb drop flowid :1\n"));
|
||||
|
||||
return ret;
|
||||
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
}
|
||||
|
||||
VIR_TEST_MAIN_PRELOAD(mymain, VIR_TEST_MOCK("virnetdevbandwidth"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user