1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

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