Allow self tests to pass when run in LXC zones

Fixes https://github.com/fwupd/fwupd/issues/4684
This commit is contained in:
Richard Hughes 2022-08-01 10:38:14 +01:00
parent 2705179117
commit 6aec72d58a

View File

@ -43,6 +43,10 @@ fu_linux_swap_plain_func(void)
g_test_skip(error->message);
return;
}
if (g_error_matches(error, G_IO_ERROR, G_IO_ERROR_CONNECTION_REFUSED)) {
g_test_skip(error->message);
return;
}
g_assert_no_error(error);
g_assert_nonnull(swap);
}