]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: add libsmartcols termreduce regression helper
authorAlessandro Ratti <alessandro@0x65c.net>
Sun, 28 Dec 2025 18:11:08 +0000 (19:11 +0100)
committerAlessandro Ratti <alessandro@0x65c.net>
Wed, 7 Jan 2026 13:52:22 +0000 (14:52 +0100)
commit34ebd2a75992472d8569ea262c64a2fef45c255c
treed1e9036e7b684fdea7e059e00520fdb93907bb99
parent504456effff6740d89eb6735b4eba33e54aca3ad
tests: add libsmartcols termreduce regression helper

Add a small test helper program that creates a libsmartcols table,
applies scols_table_reduce_termwidth(), and prints the table multiple
times within the same process.

The helper is used by regression tests to detect unintended cumulative
width reduction across repeated printing.

Signed-off-by: Alessandro Ratti <alessandro@0x65c.net>
tests/helpers/Makemodule.am
tests/helpers/test_scols_termreduce.c [new file with mode: 0644]