1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-21 02:50:18 +03:00

test-terminal-util: print value of colors_enabled()

This makes it easier to diagnose why colors are disabled.

(cherry picked from commit b137b2979868e2de5fb5c26e90bacee33597b8e7)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2024-10-28 13:39:36 +01:00 committed by Luca Boccassi
parent f23efaf96d
commit bbdb5f97a9

View File

@ -22,6 +22,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"));