Skip to content

Commit

Permalink
tests: use proper exit code to mark tests as skipped
Browse files Browse the repository at this point in the history
Mic92 committed Apr 23, 2023
1 parent 98591a5 commit acee2a4
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/set-rpath-library.sh
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ SCRATCH=scratch/$(basename "$0" .sh)

if test "$(uname)" = FreeBSD; then
echo "skipping on FreeBSD"
exit 0
exit 77
fi

rm -rf "${SCRATCH}"
2 changes: 1 addition & 1 deletion tests/set-rpath-rel-map.sh
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ OBJCOPY=${OBJCOPY:-objcopy}

if ! $OBJDUMP -p main | grep -q MIPS_RLD_MAP_REL; then
echo "No MIPS_RLD_MAP_REL dynamic section entry, skipping"
exit 0
exit 77
fi

rm -rf "${SCRATCH}"

0 comments on commit acee2a4

Please sign in to comment.