trivial: Fix swap self tests

This only works if the computer used to run the test also has /dev/nvme0n1p4 as
encrypted swap...
This commit is contained in:
Richard Hughes 2020-11-10 19:55:28 +00:00
parent eac6edd7c5
commit d87edbcc51

View File

@ -44,8 +44,6 @@ fu_linux_swap_plain_func (void)
}
g_assert_no_error (error);
g_assert_nonnull (swap);
g_assert_true (fu_linux_swap_get_enabled (swap));
g_assert_false (fu_linux_swap_get_encrypted (swap));
}
static void
@ -64,8 +62,6 @@ fu_linux_swap_encrypted_func (void)
}
g_assert_no_error (error);
g_assert_nonnull (swap);
g_assert_true (fu_linux_swap_get_enabled (swap));
g_assert_true (fu_linux_swap_get_encrypted (swap));
}
int