From d2361d2a1cf01a7757ff847ac08f2b50e1c5b21a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 10 Mar 2013 22:11:16 +0000 Subject: Fix test case cmdtest has been fixed, so the test case used to pass by mistake. --- tests/iscache-not-cache.exit | 1 + tests/iscache-not-cache.script | 10 ++++++++-- tests/iscache-not-cache.stderr | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 tests/iscache-not-cache.exit create mode 100644 tests/iscache-not-cache.stderr (limited to 'tests') diff --git a/tests/iscache-not-cache.exit b/tests/iscache-not-cache.exit new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/iscache-not-cache.exit @@ -0,0 +1 @@ +1 diff --git a/tests/iscache-not-cache.script b/tests/iscache-not-cache.script index acfc935..aacd621 100755 --- a/tests/iscache-not-cache.script +++ b/tests/iscache-not-cache.script @@ -14,7 +14,13 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -set -eu +set -u -! "$SRCDIR/cachedir" iscache "$DATADIR" +"$SRCDIR/cachedir" iscache "$DATADIR" > "$DATADIR/stdout" 2> "$DATADIR/stderr" +exit=$? +set -e + +sed "s:$DATADIR:TMP:g" "$DATADIR/stdout" +sed "s:$DATADIR:TMP:g" "$DATADIR/stderr" 1>&2 +exit $exit diff --git a/tests/iscache-not-cache.stderr b/tests/iscache-not-cache.stderr new file mode 100644 index 0000000..f90b672 --- /dev/null +++ b/tests/iscache-not-cache.stderr @@ -0,0 +1 @@ +TMP is not a cache directory -- cgit v1.2.1