Skip to content

Commit 18e5b22

Browse files
committed
test: fix operator error
Otherwise test fail with error [: -neq: binary operator expected Signed-off-by: Ankur Tyagi <[email protected]>
1 parent 2c50f76 commit 18e5b22

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/json-invalid-types.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ export PLIST_JSON_DEBUG=1
1414

1515
echo "Converting (failure expected)"
1616
$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE0 -o /dev/null
17-
if [ $? -neq 2 ]; then
17+
if [ $? -ne 2 ]; then
1818
exit 1
1919
fi
2020

2121
echo "Converting (failure expected)"
2222
$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE1 -o /dev/null
23-
if [ $? -neq 2 ]; then
23+
if [ $? -ne 2 ]; then
2424
exit 2
2525
fi
2626

2727
echo "Converting (failure expected)"
2828
$top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE2 -o /dev/null
29-
if [ $? -neq 2 ]; then
29+
if [ $? -ne 2 ]; then
3030
exit 3
3131
fi
3232

test/ostep-invalid-types.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ export PLIST_OSTEP_DEBUG=1
1414

1515
echo "Converting (failure expected)"
1616
$top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE0 -o /dev/null
17-
if [ $? -neq 2 ]; then
17+
if [ $? -ne 2 ]; then
1818
exit 1
1919
fi
2020

2121
echo "Converting (failure expected)"
2222
$top_builddir/tools/plistutil -f openstepn -i $DATASRC/$TESTFILE1 -o /dev/null
23-
if [ $? -neq 2 ]; then
23+
if [ $? -ne 2 ]; then
2424
exit 2
2525
fi
2626

2727
echo "Converting (failure expected)"
2828
$top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE2 -o /dev/null
29-
if [ $? -neq 2 ]; then
29+
if [ $? -ne 2 ]; then
3030
exit 3
3131
fi
3232

0 commit comments

Comments
 (0)