summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-02-07 10:01:08 +0100
committerGravatar Nikias Bassen2022-02-07 10:01:08 +0100
commit366f30b71cc79af1b3c80d98eb219cbc7e5e6b26 (patch)
tree22cca4d90ed8b47c77be64990ee58cc0031e6035
parent863faf68a5864865ba3fbd9459ea7ed0a3076473 (diff)
downloadlibplist-366f30b71cc79af1b3c80d98eb219cbc7e5e6b26.tar.gz
libplist-366f30b71cc79af1b3c80d98eb219cbc7e5e6b26.tar.bz2
test: Polish json3.test to not leave temp file after test
-rwxr-xr-xtest/json3.test8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/json3.test b/test/json3.test
index 06a7007..1cbf59d 100755
--- a/test/json3.test
+++ b/test/json3.test
@@ -13,10 +13,12 @@ fi
export PLIST_JSON_DEBUG=1
echo "Converting input file to JSON"
-$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE -o $DATASRC/$TESTFILE.json
+$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE -o $DATAOUT/$TESTFILE.json
echo "Converting to binary and back to JSON"
-$top_builddir/test/plist_jtest $DATASRC/$TESTFILE.json $DATAOUT/$TESTFILE.json.out
+$top_builddir/test/plist_jtest $DATAOUT/$TESTFILE.json $DATAOUT/$TESTFILE.json.out
echo "Comparing"
-$top_builddir/test/plist_cmp $DATASRC/$TESTFILE $DATAOUT/$TESTFILE.json.out
+$top_builddir/test/plist_cmp $DATAOUT/$TESTFILE $DATAOUT/$TESTFILE.json.out
+
+rm -f $DATAOUT/$TESTFILE.json