Skip to content

Commit

Permalink
Merge pull request #6928 from tom-cosgrove-arm/allow-more-than-255-er…
Browse files Browse the repository at this point in the history
…rors-in-compat-and-all-sh-2.28
  • Loading branch information
daverodgman authored Jan 14, 2023
2 parents 160df1d + c1ae9f9 commit 4afd4b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/compat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1445,8 +1445,7 @@ done

echo "------------------------------------------------------------------------"

if [ $FAILED -ne 0 -o $SRVMEM -ne 0 ];
then
if [ $FAILED -ne 0 -o $SRVMEM -ne 0 ]; then
printf "FAILED"
else
printf "PASSED"
Expand All @@ -1462,4 +1461,9 @@ PASSED=$(( $TESTS - $FAILED ))
echo " ($PASSED / $TESTS tests ($SKIPPED skipped$MEMREPORT))"

FAILED=$(( $FAILED + $SRVMEM ))
if [ $FAILED -gt 255 ]; then
# Clamp at 255 as caller gets exit code & 0xFF
# (so 256 would be 0, or success, etc)
FAILED=255
fi
exit $FAILED
5 changes: 5 additions & 0 deletions tests/ssl-opt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10576,4 +10576,9 @@ fi
PASSES=$(( $TESTS - $FAILS ))
echo " ($PASSES / $TESTS tests ($SKIPS skipped))"

if [ $FAILS -gt 255 ]; then
# Clamp at 255 as caller gets exit code & 0xFF
# (so 256 would be 0, or success, etc)
FAILS=255
fi
exit $FAILS

0 comments on commit 4afd4b9

Please sign in to comment.