summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-07-16 12:42:43 +0200
committerLennart Poettering <lennart@poettering.net>2019-07-16 12:42:43 +0200
commitdea55040df2e29562024c00818a1ebe9aa9b38c7 (patch)
treee9d062f6138d9f8ae2528deebb0bd54f546979fc
parentdc0e9c9ba6fbc96f73166c91d99f7465826375a5 (diff)
downloadsystemd-dea55040df2e29562024c00818a1ebe9aa9b38c7.tar.gz
test: make sure colors don't confuse our test
-rw-r--r--src/test/test-format-table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-format-table.c b/src/test/test-format-table.c
index 5bede5c75b..a8b6e1ffe3 100644
--- a/src/test/test-format-table.c
+++ b/src/test/test-format-table.c
@@ -34,6 +34,7 @@ int main(int argc, char *argv[]) {
_cleanup_(table_unrefp) Table *t = NULL;
_cleanup_free_ char *formatted = NULL;
+ assert_se(setenv("SYSTEMD_COLORS", "0", 1) >= 0);
assert_se(setenv("COLUMNS", "40", 1) >= 0);
assert_se(t = table_new("one", "two", "three"));