mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
test: skip tests if socket_check_protocol_support() failed
Skip the tests if socket_check_protocol_support() failed, but do run g_test_run() to keep TAP harness happy. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
e7b6ba4186
commit
a4eb74a66a
3 changed files with 9 additions and 3 deletions
|
@ -566,7 +566,8 @@ int main(int argc, char **argv)
|
|||
* with either IPv4 or IPv6 disabled.
|
||||
*/
|
||||
if (socket_check_protocol_support(&has_ipv4, &has_ipv6) < 0) {
|
||||
return 1;
|
||||
g_printerr("socket_check_protocol_support() failed\n");
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (has_ipv4) {
|
||||
|
@ -595,5 +596,6 @@ int main(int argc, char **argv)
|
|||
test_io_channel_unix_listen_cleanup);
|
||||
#endif /* _WIN32 */
|
||||
|
||||
end:
|
||||
return g_test_run();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue