diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-03-10 22:11:16 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-03-10 22:11:16 +0000 |
commit | d2361d2a1cf01a7757ff847ac08f2b50e1c5b21a (patch) | |
tree | 57bbcb8aa858dbb37b2c00e3d9149cfb3acda34d | |
parent | 52a19315418b6b94289ff1ef4cc2d2d6b6135855 (diff) | |
download | cachedir-d2361d2a1cf01a7757ff847ac08f2b50e1c5b21a.tar.gz |
Fix test case
cmdtest has been fixed, so the test case used to pass by mistake.
-rw-r--r-- | tests/iscache-not-cache.exit | 1 | ||||
-rwxr-xr-x | tests/iscache-not-cache.script | 10 | ||||
-rw-r--r-- | tests/iscache-not-cache.stderr | 1 |
3 files changed, 10 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>. -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 |