mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
test: drop unnecessary comparison and use correct assertion macros
Follow-up for 8951706784.
Fixes CID#1608873 and CID#1608874.
This commit is contained in:
@@ -30,9 +30,9 @@ TEST(memfd_get_sealed) {
|
||||
ASSERT_OK(memfd_get_size(fd, &size));
|
||||
ASSERT_EQ(size, new_size / 2);
|
||||
|
||||
ASSERT_OK(memfd_get_sealed(fd) == 0);
|
||||
ASSERT_OK(memfd_set_sealed(fd) >= 0);
|
||||
ASSERT_OK(memfd_get_sealed(fd) > 0);
|
||||
ASSERT_OK_ZERO(memfd_get_sealed(fd));
|
||||
ASSERT_OK(memfd_set_sealed(fd));
|
||||
ASSERT_OK_POSITIVE(memfd_get_sealed(fd));
|
||||
}
|
||||
|
||||
DEFINE_TEST_MAIN(LOG_DEBUG);
|
||||
|
||||
Reference in New Issue
Block a user