Skip to content

Commit d44701b

Browse files
ianfabsnicolet
authored andcommitted
Fix condition for error message of signature script
Use obtained bench instead of reference bench when checking for crash. No functional change.
1 parent 2660a91 commit d44701b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/signature.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ signature=`./stockfish bench 2>&1 | grep "Nodes searched : " | awk '{print $4}'
1616
if [ $# -gt 0 ]; then
1717
# compare to given reference
1818
if [ "$1" != "$signature" ]; then
19-
if [ "x$1" == "x" ]; then
19+
if [ -z "$signature" ]; then
2020
echo "No signature obtained from bench. Code crashed or assert triggered ?"
2121
else
2222
echo "signature mismatch: reference $1 obtained: $signature ."

0 commit comments

Comments
 (0)