From: Jan Janssen Date: Sun, 15 Oct 2023 07:39:50 +0000 (+0200) Subject: test: Remove unnecessary test prefix X-Git-Tag: v255-rc1~242 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec9d3fc51cb272a9b62dc5a053908909d27c5cfb;p=thirdparty%2Fsystemd.git test: Remove unnecessary test prefix --- diff --git a/src/boot/efi/test-efi-string.c b/src/boot/efi/test-efi-string.c index 8f777c1ce3c..2ffabe04b85 100644 --- a/src/boot/efi/test-efi-string.c +++ b/src/boot/efi/test-efi-string.c @@ -484,7 +484,7 @@ TEST(parse_number16) { assert_se(streq16(tail, u"rest")); } -TEST(test_hexdump) { +TEST(hexdump) { char16_t *hex; hex = hexdump(NULL, 0); diff --git a/src/test/test-async.c b/src/test/test-async.c index dc0e34b48f7..b5a4f5904be 100644 --- a/src/test/test-async.c +++ b/src/test/test-async.c @@ -13,7 +13,7 @@ #include "tests.h" #include "tmpfile-util.h" -TEST(test_asynchronous_sync) { +TEST(asynchronous_sync) { assert_se(asynchronous_sync(NULL) >= 0); } diff --git a/src/test/test-coredump-util.c b/src/test/test-coredump-util.c index 178e89389b1..4e7f3b43453 100644 --- a/src/test/test-coredump-util.c +++ b/src/test/test-coredump-util.c @@ -130,7 +130,7 @@ static void test_parse_auxv_one( } } -TEST(test_parse_auxv) { +TEST(parse_auxv) { _cleanup_free_ char *dir = NULL; _cleanup_close_ int dir_fd = -EBADF; diff --git a/src/test/test-escape.c b/src/test/test-escape.c index f74f4f590d1..21786ae72aa 100644 --- a/src/test/test-escape.c +++ b/src/test/test-escape.c @@ -59,7 +59,7 @@ static void test_xescape_full_one(bool eight_bits) { } } -TEST(test_xescape_full) { +TEST(xescape_full) { test_xescape_full_one(false); test_xescape_full_one(true); } diff --git a/src/test/test-fileio.c b/src/test/test-fileio.c index 6efa8f2939a..721cdbd5fd3 100644 --- a/src/test/test-fileio.c +++ b/src/test/test-fileio.c @@ -1096,7 +1096,7 @@ static void test_read_virtual_file_one(size_t max_size) { } } -TEST(test_read_virtual_file) { +TEST(read_virtual_file) { test_read_virtual_file_one(0); test_read_virtual_file_one(1); test_read_virtual_file_one(2); @@ -1106,7 +1106,7 @@ TEST(test_read_virtual_file) { test_read_virtual_file_one(SIZE_MAX); } -TEST(test_fdopen_independent) { +TEST(fdopen_independent) { #define TEST_TEXT "this is some random test text we are going to write to a memfd" _cleanup_close_ int fd = -EBADF; _cleanup_fclose_ FILE *f = NULL; diff --git a/src/test/test-proc-cmdline.c b/src/test/test-proc-cmdline.c index 9920462ad53..1d13656f627 100644 --- a/src/test/test-proc-cmdline.c +++ b/src/test/test-proc-cmdline.c @@ -114,7 +114,7 @@ static void test_proc_cmdline_given_one(bool flip_initrd) { in_initrd_force(!in_initrd()); } -TEST(test_proc_cmdline_given) { +TEST(proc_cmdline_given) { assert_se(putenv((char*) "SYSTEMD_PROC_CMDLINE=foo_bar=quux wuff-piep=\"tuet \" rd.zumm space='x y z' miepf=\"uuu\"") == 0); assert_se(putenv((char*) "SYSTEMD_EFI_OPTIONS=miepf=\"uuu\"") == 0);