summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-15 19:19:35 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-15 19:28:15 +0000
commita804ea62c60cd3bde91283bd6f8f3f0efa539b34 (patch)
tree3f4075489850e1c185fb1e94f13f79eb5120b00e
parent09808a78b4703ac9cd5c097c8efb8d344c7f7306 (diff)
round-robin.sh: Add a workaround for avoiding running TSan tests with QEMU
Change-Id: I49a5212bcdd43d698eec150dd9d0bb7ac57722fa
-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".