]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-utf8: drop explicit setting of colors
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 3 Jul 2025 11:13:44 +0000 (13:13 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 3 Jul 2025 19:03:26 +0000 (21:03 +0200)
It was added in 82208a9949ff96abfd41ea3dd969fa7501ee4686, but since
13ee93978479b80e980d8551c689a7087bf1817e, we enable colors by default.
I don't think this function is doing anything useful.

src/test/test-utf8.c

index 18974e76642b14357196024ab2d4b57c6c7b37a1..ed7625061ac22705b63ff1aab1bcda6d06927568 100644 (file)
@@ -239,9 +239,4 @@ TEST(utf8_last_length) {
         ASSERT_EQ(utf8_last_length("koff👊", SIZE_MAX), strlen("👊"));
 }
 
-static int intro(void) {
-        log_show_color(true);
-        return EXIT_SUCCESS;
-}
-
-DEFINE_TEST_MAIN_WITH_INTRO(LOG_INFO, intro);
+DEFINE_TEST_MAIN(LOG_INFO);