From: Joost VandeVondele Date: Wed, 30 Sep 2020 19:22:36 +0000 (+0200) Subject: Schedule threads fairly under valgrind X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=9382f854b3a67c5a970ad3342a3c12454974eccd;ds=sidebyside 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 03ded74a..03e9c9de 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" ;;