From: Jim Meyering Date: Fri, 11 Jul 2003 20:40:28 +0000 (+0000) Subject: Also fail if cat-to-create-expected-output X-Git-Tag: v5.0.1~85 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=a79673ff2a9fd25d845d3d0b39731c258adbbcbb;p=thirdparty%2Fcoreutils.git Also fail if cat-to-create-expected-output fails. Otherwise, if both `exp' and `out' end up empty because of e.g., a full disk, they would mistakenly compare equal. --- diff --git a/tests/sample-test b/tests/sample-test index 9cb755c55d..7552fb4103 100644 --- a/tests/sample-test +++ b/tests/sample-test @@ -28,7 +28,7 @@ fi fail=0 FIXME > out || fail=1 -cat <<\EOF > exp +cat <<\EOF > exp || fail=1 FIXME EOF