From: Joost VandeVondele Date: Wed, 30 Sep 2020 19:22:36 +0000 (+0200) Subject: Schedule threads fairly under valgrind X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=9382f854b3a67c5a970ad3342a3c12454974eccd;p=fairystockfish.git Schedule threads fairly under valgrind fixes a rare case that can cause CI to fail when running multithreaded under valgrind. closes https://github.com/official-stockfish/Stockfish/pull/3165 No functional change. --- diff --git a/tests/instrumented.sh b/tests/instrumented.sh index 03ded74..03e9c9d 100755 --- a/tests/instrumented.sh +++ b/tests/instrumented.sh @@ -20,7 +20,7 @@ case $1 in --valgrind-thread) echo "valgrind-thread testing started" prefix='' - exeprefix='valgrind --error-exitcode=42' + exeprefix='valgrind --fair-sched=try --error-exitcode=42' postfix='1>/dev/null' threads="2" ;;