Adapt `tsan/flush_memory.cpp` to run on non-local platforms.
authorDan Liew <dliew@apple.com>
Wed, 29 Sep 2021 17:28:03 +0000 (10:28 -0700)
committerDan Liew <dliew@apple.com>
Wed, 29 Sep 2021 17:39:38 +0000 (10:39 -0700)
commitcac25e40428de19bd78b821dce47c36ebca2ce6c
treeb5b6cf02d8c9ecad1ec8d54bf91cbbf33e5909d3
parentd7ae43438a04bcb651ede50c19042e08514bf729
Adapt `tsan/flush_memory.cpp` to run on non-local platforms.

ad890aa2327feb6b6aee676fe85b2352fba2403e 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

Differential Revision: https://reviews.llvm.org/D110734
compiler-rt/test/tsan/flush_memory.cpp