summaryrefslogtreecommitdiffstats
path: root/test/amp.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/amp.test')
-rwxr-xr-xtest/amp.test10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/amp.test b/test/amp.test
index 0815391..3678f27 100755
--- a/test/amp.test
+++ b/test/amp.test
@@ -1,14 +1,16 @@
## -*- sh -*-
-set -e
-
DATASRC=$top_srcdir/test/data
TESTFILE=amp.plist
DATAIN0=$DATASRC/$TESTFILE
-DATAOUT0=$top_builddir/test/data/$TESTFILE.out
+DATAOUT0=$top_builddir/test/data/amp.test.out
rm -rf $DATAOUT0
$top_builddir/tools/plistutil -i $DATAIN0 -o $DATAOUT0
-if test -f $DATAOUT0; then
+
+# test succeeds if plistutil fails
+if [ $? -eq 0 ]; then
exit 1
+else
+ exit 0
fi