From: Jim Meyering Date: Tue, 28 Oct 2008 08:24:01 +0000 (+0100) Subject: tests: ls/stat-failed: don't discard stderr. X-Git-Tag: v7.1~152 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dc070cc866477bc4899221ecceb1c294db99371;p=thirdparty%2Fcoreutils.git tests: ls/stat-failed: don't discard stderr. * tests/ls/stat-failed: Let stderr be recorded, to ease debugging. --- diff --git a/tests/ls/stat-failed b/tests/ls/stat-failed index 949fa24c67..430c36fe83 100755 --- a/tests/ls/stat-failed +++ b/tests/ls/stat-failed @@ -31,7 +31,7 @@ chmod 600 d || framework_failure fail=0 -ls -Log d > out 2> err +ls -Log d > out test $? = 1 || fail=1 cat <<\EOF > exp || fail=1 @@ -43,7 +43,7 @@ sed 's/^l/?/' out | compare - exp || fail=1 # Ensure that the offsets in --dired output are accurate. rm -f out exp -ls --dired -l d > out 2> /dev/null && fail=1 +ls --dired -l d > out && fail=1 cat <<\EOF > exp || fail=1 total 0