]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: add regression test for repeated termreduce printing
authorAlessandro Ratti <alessandro@0x65c.net>
Sun, 28 Dec 2025 18:12:08 +0000 (19:12 +0100)
committerAlessandro Ratti <alessandro@0x65c.net>
Wed, 7 Jan 2026 13:52:24 +0000 (14:52 +0100)
commitaadd29107c43f04a34968a23ca8ee0435acdb783
treee403d904ae05f99325be97f93599c4814946febc
parent34ebd2a75992472d8569ea262c64a2fef45c255c
tests: add regression test for repeated termreduce printing

Add a regression test that verifies repeated printing of the same
libsmartcols table produces identical output when termreduce is used.

Before the fix, the effective output width would shrink on each print,
resulting in progressively truncated output. The test guards against
future regressions by ensuring printing remains stable across
invocations.

Signed-off-by: Alessandro Ratti <alessandro@0x65c.net>
tests/commands.sh
tests/expected/libsmartcols/termreduce-loop [new file with mode: 0644]
tests/ts/libsmartcols/termreduce-loop [new file with mode: 0755]