Skip to content

Commit c659271

Browse files
committed
test: make sure exit codes work
1 parent 43afe28 commit c659271

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ if [[ "$GLOB" != *"$EXPECTED_FAIL_FILE"* ]]; then
4747
exit 1
4848
fi
4949
echo "[PASS] glob argument resolution" >&2
50+
51+
eval "/usr/bin/env node $FULL_SCRIPT_PATH --set-exit-if-changed -n --glob=testproject/**/*.java"
52+
if [ "$?" != 1 ]; then
53+
echo "[FAIL] Expected return status to be 1, got $?" >&2
54+
exit 1
55+
fi
56+
echo "[PASS] error code check" >&2

0 commit comments

Comments
 (0)