test: make sure colors don't confuse our test

This commit is contained in:
Lennart Poettering 2019-07-16 12:42:43 +02:00
parent dc0e9c9ba6
commit dea55040df

View file

@ -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"));