]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-terminal-util: print value of colors_enabled()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 28 Oct 2024 12:39:36 +0000 (13:39 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 29 Oct 2024 08:41:26 +0000 (09:41 +0100)
This makes it easier to diagnose why colors are disabled.

src/test/test-terminal-util.c

index ad800a41115bfb27e3b9bad71c6eb6c0fea2bb44..9586e4e2456ab72e3d77629a046385bd76e83639 100644 (file)
         "in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat " \
         "non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
 
+TEST(colors_enabled) {
+        log_info("colors_enabled: %s", yes_no(colors_enabled()));
+}
+
 TEST(default_term_for_tty) {
         puts(default_term_for_tty("/dev/tty23"));
         puts(default_term_for_tty("/dev/ttyS23"));