summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-10-28 13:39:36 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-10-29 09:41:26 +0100
commitb137b2979868e2de5fb5c26e90bacee33597b8e7 (patch)
tree4bcdd483c2ced36690e8bfc738166082f34d9475 /src/test
parentbsod: do not check for color support (diff)
downloadsystemd-b137b2979868e2de5fb5c26e90bacee33597b8e7.tar.xz
systemd-b137b2979868e2de5fb5c26e90bacee33597b8e7.zip
test-terminal-util: print value of colors_enabled()
This makes it easier to diagnose why colors are disabled.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-terminal-util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test-terminal-util.c b/src/test/test-terminal-util.c
index ad800a4111..9586e4e245 100644
--- a/src/test/test-terminal-util.c
+++ b/src/test/test-terminal-util.c
@@ -25,6 +25,10 @@
"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"));