From: Thomas Weißschuh Date: Tue, 12 May 2026 21:21:25 +0000 (+0200) Subject: liblastlog2: (tests) avoid log spam X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=577bf6fe6b81bce7905ee56a83ec1a1ff10e205e;p=thirdparty%2Futil-linux.git liblastlog2: (tests) avoid log spam In its current form this test spams the test log with some pointless noise. Redirect the output to a logfile and validate it, too. Signed-off-by: Thomas Weißschuh --- diff --git a/tests/expected/liblastlog2/y2038_ll2_read_all b/tests/expected/liblastlog2/y2038_ll2_read_all new file mode 100644 index 000000000..47a2fd7bf --- /dev/null +++ b/tests/expected/liblastlog2/y2038_ll2_read_all @@ -0,0 +1,2 @@ +Cannot open database (y2038-ll2_read_all.db): unable to open database file +Returning the correct errno: No such file or directory diff --git a/tests/ts/liblastlog2/y2038_ll2_read_all b/tests/ts/liblastlog2/y2038_ll2_read_all index e2fce4469..dacb5f2cf 100755 --- a/tests/ts/liblastlog2/y2038_ll2_read_all +++ b/tests/ts/liblastlog2/y2038_ll2_read_all @@ -8,8 +8,8 @@ ts_init "$*" ts_check_test_command $TS_HELPER_LIBLASTLOG2_Y2038_LL2_READ_ALL -$TS_HELPER_LIBLASTLOG2_Y2038_LL2_READ_ALL >/dev/null || ts_failed "returned an error" +$TS_HELPER_LIBLASTLOG2_Y2038_LL2_READ_ALL >/dev/null 2>> "$TS_OUTPUT" || ts_failed "returned an error" -rm y2038-ll2_read_all.db +rm -f y2038-ll2_read_all.db ts_finalize