]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lsns::ioctl_ns) record stdout/stderr for debugging the case
authorMasatake YAMATO <yamato@redhat.com>
Tue, 16 Apr 2024 20:57:45 +0000 (05:57 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Thu, 25 Apr 2024 17:20:09 +0000 (02:20 +0900)
When the test case runs successfully, we expect the case test prints
nothing to stderr. If something is printed to stderr, it helps us
debug lsns command and the test case.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit 82ecf6cf5495f43716fbe9d72411d8bd5994f75d)

tests/expected/lsns/ioctl_ns.err [new file with mode: 0644]
tests/ts/lsns/ioctl_ns

diff --git a/tests/expected/lsns/ioctl_ns.err b/tests/expected/lsns/ioctl_ns.err
new file mode 100644 (file)
index 0000000..e69de29
index 6f306d5b39bdb473ec79ab3cefe4f386de120abf..195962e868a7c4a1f9c5cc9a64069df55f8cc9f2 100755 (executable)
@@ -95,7 +95,7 @@ init
        cleanup
     fi
     exit $RESULT
-) &
+) >> $TS_ERRLOG 2>&1 &
 mainpid=$!
 (
     exec 4< $FIFO_WAIT