summaryrefslogtreecommitdiffstats
path: root/test/json3.test
diff options
context:
space:
mode:
authorGravatar Sergei Trofimovich2023-10-03 10:41:32 +0100
committerGravatar Sergei Trofimovich2023-10-03 10:41:32 +0100
commit2cd858c679d25633077ca78b67182a9b77653816 (patch)
tree432890e32f7cc611004bba596d688c5e7a46cba9 /test/json3.test
parentd45396aad911d496494a587bd2d3ef20c2e8a8d0 (diff)
downloadlibplist-2cd858c679d25633077ca78b67182a9b77653816.tar.gz
libplist-2cd858c679d25633077ca78b67182a9b77653816.tar.bz2
test: use unique output file names across tests
Without the change tests ran in parallel occasionally clobber outputs of one another and fail as: $ make check -j16 VERBOSE=y ... FAIL: huge ========== Converting File ../test/data/5.plist is open PList XML parsing succeeded PList BIN writing succeeded PList BIN parsing succeeded PList XML writing succeeded Size of input and output is different Input size : 4292380 Output size : 4305301 Comparing PList parsing failed FAIL huge.test (exit status: 3) Closes: https://github.com/libimobiledevice/libplist/issues/234#issuecomment-1743820556
Diffstat (limited to 'test/json3.test')
-rwxr-xr-xtest/json3.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/json3.test b/test/json3.test
index aa040e5..6189e89 100755
--- a/test/json3.test
+++ b/test/json3.test
@@ -13,12 +13,12 @@ fi
export PLIST_JSON_DEBUG=1
echo "Converting input file to JSON"
-$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE -o $DATAOUT/$TESTFILE.json
+$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE -o $DATAOUT/json3.test.json
echo "Converting to binary and back to JSON"
-$top_builddir/test/plist_jtest $DATAOUT/$TESTFILE.json $DATAOUT/$TESTFILE.json.out
+$top_builddir/test/plist_jtest $DATAOUT/json3.test.json $DATAOUT/json3.test.json.out
echo "Comparing"
-$top_builddir/test/plist_cmp $DATASRC/$TESTFILE $DATAOUT/$TESTFILE.json.out
+$top_builddir/test/plist_cmp $DATASRC/$TESTFILE $DATAOUT/json3.test.json.out
-rm -f $DATAOUT/$TESTFILE.json
+rm -f $DATAOUT/json3.test.json