mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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.type=tcp,"
|
||||||
"server.2.host=example.com");
|
"server.2.host=example.com");
|
||||||
|
|
||||||
return ret;
|
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VIR_TEST_MAIN(mymain)
|
VIR_TEST_MAIN(mymain)
|
||||||
|
@ -156,7 +156,7 @@ mymain(void)
|
|||||||
TC " filter add dev eth0 parent ffff: protocol all u32 match u32 0 0 "
|
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"));
|
"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"))
|
VIR_TEST_MAIN_PRELOAD(mymain, VIR_TEST_MOCK("virnetdevbandwidth"))
|
||||||
|
Loading…
Reference in New Issue
Block a user