]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (liblastlog2) don't write to stderr and stdout
authorKarel Zak <kzak@redhat.com>
Tue, 22 Oct 2024 09:17:23 +0000 (11:17 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 22 Oct 2024 09:24:16 +0000 (11:24 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/liblastlog2/write_read_user.err [new file with mode: 0644]
tests/ts/liblastlog2/write_read_user

diff --git a/tests/expected/liblastlog2/write_read_user.err b/tests/expected/liblastlog2/write_read_user.err
new file mode 100644 (file)
index 0000000..d52ae59
--- /dev/null
@@ -0,0 +1,2 @@
+Cannot open database (no_file): unable to open database file
+Returning the correct errno: No such file or directory
index 8a6028abc8403c9c9706f627b652551dea007b04..03e034fa80d9079377e888d7136493a93852e55f 100755 (executable)
@@ -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