summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--round-robin.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/round-robin.sh b/round-robin.sh
index 1b156c9d..d0c4c87e 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -412,6 +412,17 @@ build_abe ()
local target_opt=""
if [ x"${rr[target]}" != x"native" ]; then
target_opt="--target $gnu_target"
+
+ # Disable TSan execution tests when using QEMU.
+ # QEMU can't handle TSan's shadow memory and it sends host machine
+ # into swap.
+ if $check && [ x"$project" = x"gcc" ]; then
+ assert_with_msg "ERROR: Testing is not using QEMU" \
+ ! echo "$stage" | grep -q -e "--testcontainer"
+ sed -i \
+ -e 's/set dg-do-what-default run/set dg-do-what-default link' \
+ ../gcc/gcc/testsuite/lib/tsan-dg.exp
+ fi
fi
# Run "./abe.sh --build $project".