test: add a new unit test, src/test/test-binfmt-util.c

This commit is contained in:
ZIHCO
2025-04-03 18:32:23 +09:00
committed by Yu Watanabe
parent 90941d458a
commit 653b42c853
2 changed files with 11 additions and 0 deletions
+1
View File
@@ -49,6 +49,7 @@ simple_tests += files(
'test-argv-util.c',
'test-audit-util.c',
'test-barrier.c',
'test-binfmt-util.c',
'test-bitfield.c',
'test-bitmap.c',
'test-blockdev-util.c',
+10
View File
@@ -0,0 +1,10 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include "binfmt-util.h"
#include "tests.h"
TEST(binfmt_mounted) {
ASSERT_OK(binfmt_mounted());
}
DEFINE_TEST_MAIN(LOG_DEBUG);