summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/json-invalid-types.test6
-rwxr-xr-xtest/ostep-invalid-types.test9
2 files changed, 7 insertions, 8 deletions
diff --git a/test/json-invalid-types.test b/test/json-invalid-types.test
index c532316..a21fcd9 100755
--- a/test/json-invalid-types.test
+++ b/test/json-invalid-types.test
@@ -14,19 +14,19 @@ export PLIST_JSON_DEBUG=1
echo "Converting (failure expected)"
$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE0 -o /dev/null
-if [ $? -neq 2 ]; then
+if [ $? -ne 2 ]; then
exit 1
fi
echo "Converting (failure expected)"
$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE1 -o /dev/null
-if [ $? -neq 2 ]; then
+if [ $? -ne 2 ]; then
exit 2
fi
echo "Converting (failure expected)"
$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE2 -o /dev/null
-if [ $? -neq 2 ]; then
+if [ $? -ne 2 ]; then
exit 3
fi
diff --git a/test/ostep-invalid-types.test b/test/ostep-invalid-types.test
index 9222394..3ae376c 100755
--- a/test/ostep-invalid-types.test
+++ b/test/ostep-invalid-types.test
@@ -2,7 +2,6 @@
DATASRC=$top_srcdir/test/data
DATAOUT=$top_builddir/test/data
-TESTFILE0=data.bplist
TESTFILE1=7.plist
TESTFILE2=uid.bplist
@@ -13,20 +12,20 @@ fi
export PLIST_OSTEP_DEBUG=1
echo "Converting (failure expected)"
-$top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE0 -o /dev/null
-if [ $? -neq 2 ]; then
+echo '[true]' |$top_builddir/tools/plistutil -f openstep -i - -o /dev/null
+if [ $? -ne 2 ]; then
exit 1
fi
echo "Converting (failure expected)"
$top_builddir/tools/plistutil -f openstepn -i $DATASRC/$TESTFILE1 -o /dev/null
-if [ $? -neq 2 ]; then
+if [ $? -ne 2 ]; then
exit 2
fi
echo "Converting (failure expected)"
$top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE2 -o /dev/null
-if [ $? -neq 2 ]; then
+if [ $? -ne 2 ]; then
exit 3
fi