From 653b42c853d8229f09ab6d33d205a6be74be7999 Mon Sep 17 00:00:00 2001 From: ZIHCO Date: Thu, 3 Apr 2025 02:50:12 +0100 Subject: [PATCH] test: add a new unit test, src/test/test-binfmt-util.c --- src/test/meson.build | 1 + src/test/test-binfmt-util.c | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 src/test/test-binfmt-util.c diff --git a/src/test/meson.build b/src/test/meson.build index 4ef296a41aa..4c211cdc629 100644 --- a/src/test/meson.build +++ b/src/test/meson.build @@ -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', diff --git a/src/test/test-binfmt-util.c b/src/test/test-binfmt-util.c new file mode 100644 index 00000000000..7027efc5195 --- /dev/null +++ b/src/test/test-binfmt-util.c @@ -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); -- 2.47.3