From: Karel Zak Date: Tue, 22 Oct 2024 09:17:23 +0000 (+0200) Subject: tests: (liblastlog2) don't write to stderr and stdout X-Git-Tag: v2.42-start~169^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=20ff617f7b28375f4b8103a3e58ef280cb55b0a9;p=thirdparty%2Futil-linux.git tests: (liblastlog2) don't write to stderr and stdout Signed-off-by: Karel Zak --- diff --git a/tests/expected/liblastlog2/write_read_user.err b/tests/expected/liblastlog2/write_read_user.err new file mode 100644 index 0000000000..d52ae59e44 --- /dev/null +++ b/tests/expected/liblastlog2/write_read_user.err @@ -0,0 +1,2 @@ +Cannot open database (no_file): unable to open database file +Returning the correct errno: No such file or directory diff --git a/tests/ts/liblastlog2/write_read_user b/tests/ts/liblastlog2/write_read_user index 8a6028abc8..03e034fa80 100755 --- a/tests/ts/liblastlog2/write_read_user +++ b/tests/ts/liblastlog2/write_read_user @@ -8,7 +8,7 @@ ts_init "$*" ts_check_test_command $TS_HELPER_LIBLASTLOG2_WRITE_READ_USER -$TS_HELPER_LIBLASTLOG2_WRITE_READ_USER || ts_failed "returned an error" +$TS_HELPER_LIBLASTLOG2_WRITE_READ_USER >> $TS_OUTPUT 2>> $TS_ERRLOG || ts_failed "returned an error" rm tst-write-read-user.db