From: ZIHCO Date: Thu, 3 Apr 2025 01:50:12 +0000 (+0100) Subject: test: add a new unit test, src/test/test-binfmt-util.c X-Git-Tag: v258-rc1~928 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=653b42c853d8229f09ab6d33d205a6be74be7999;p=thirdparty%2Fsystemd.git test: add a new unit test, 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);