]> git.sesse.net Git - stockfish/commitdiff
Schedule threads fairly under valgrind
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 30 Sep 2020 19:22:36 +0000 (21:22 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Mon, 5 Oct 2020 16:56:49 +0000 (18:56 +0200)
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.

tests/instrumented.sh

index 03ded74abfd023011c8ee901716173354b37235f..03e9c9de093ca37fea339f144569d00bfcb01945 100755 (executable)
@@ -20,7 +20,7 @@ case $1 in
   --valgrind-thread)
     echo "valgrind-thread testing started"
     prefix=''
   --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"
   ;;
     postfix='1>/dev/null'
     threads="2"
   ;;