[PATCH] D110734: Adapt `tsan/flush_memory.cpp` to run on non-local platforms.
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 29 10:32:14 PDT 2021
delcypher created this revision.
delcypher added reviewers: dvyukov, yln, kubamracek, aralisza.
delcypher requested review of this revision.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
ad890aa2327feb6b6aee676fe85b2352fba2403e <https://reviews.llvm.org/rGad890aa2327feb6b6aee676fe85b2352fba2403e> landed a test without
using the `%run` prefix which means the test fails to run for
platforms that need it (e.g. iOS simulators).
This patch adds the `%run` prefix. While we're here also split
the single `RUN` line into two to make debugging easier.
rdar://83637296
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110734
Files:
compiler-rt/test/tsan/flush_memory.cpp
Index: compiler-rt/test/tsan/flush_memory.cpp
===================================================================
--- compiler-rt/test/tsan/flush_memory.cpp
+++ compiler-rt/test/tsan/flush_memory.cpp
@@ -1,4 +1,5 @@
-// RUN: %clangxx_tsan -O1 %s -o %t && %env_tsan_opts="flush_memory_ms=1 flush_symbolizer_ms=1 memory_limit_mb=1" %deflake %t | FileCheck %s
+// RUN: %clangxx_tsan -O1 %s -o %t
+// RUN: %env_tsan_opts="flush_memory_ms=1 flush_symbolizer_ms=1 memory_limit_mb=1" %deflake %run %t | FileCheck %s
#include "test.h"
long X, Y;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110734.375951.patch
Type: text/x-patch
Size: 542 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210929/43961d80/attachment.bin>
More information about the llvm-commits
mailing list