diff --git a/compiler-rt/test/profile/ContinuousSyncMode/basic.c b/compiler-rt/test/profile/ContinuousSyncMode/basic.c index e8bd087a0f59d..531877b78a1a2 100644 --- a/compiler-rt/test/profile/ContinuousSyncMode/basic.c +++ b/compiler-rt/test/profile/ContinuousSyncMode/basic.c @@ -1,4 +1,4 @@ -// REQUIRES: target={{.*(darwin|aix).*}} +// REQUIRES: continuous-mode // RUN: %clang_profgen_cont -fcoverage-mapping -o %t.exe %s // RUN: echo "garbage" > %t.profraw diff --git a/compiler-rt/test/profile/ContinuousSyncMode/get-filename.c b/compiler-rt/test/profile/ContinuousSyncMode/get-filename.c index 40a0cc5ffd688..e341dd429eb84 100644 --- a/compiler-rt/test/profile/ContinuousSyncMode/get-filename.c +++ b/compiler-rt/test/profile/ContinuousSyncMode/get-filename.c @@ -1,4 +1,4 @@ -// REQUIRES: target={{.*(darwin|aix).*}} +// REQUIRES: continuous-mode // RUN: %clang_pgogen_cont -o %t.exe %s // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe %t.profraw diff --git a/compiler-rt/test/profile/ContinuousSyncMode/image-with-mcdc.c b/compiler-rt/test/profile/ContinuousSyncMode/image-with-mcdc.c index d171badbf4d33..fa24e26c4c53b 100644 --- a/compiler-rt/test/profile/ContinuousSyncMode/image-with-mcdc.c +++ b/compiler-rt/test/profile/ContinuousSyncMode/image-with-mcdc.c @@ -1,4 +1,4 @@ -// REQUIRES: target={{.*(darwin|aix).*}} +// REQUIRES: continuous-mode // RUN: %clang_profgen_cont -fcoverage-mapping -fcoverage-mcdc -O3 -o %t.exe %s // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe 3 3 diff --git a/compiler-rt/test/profile/ContinuousSyncMode/multi-threaded.cpp b/compiler-rt/test/profile/ContinuousSyncMode/multi-threaded.cpp index ff05a69a5e7d4..aa0a46e0fc396 100644 --- a/compiler-rt/test/profile/ContinuousSyncMode/multi-threaded.cpp +++ b/compiler-rt/test/profile/ContinuousSyncMode/multi-threaded.cpp @@ -1,4 +1,4 @@ -// REQUIRES: target={{.*(darwin|aix).*}} +// REQUIRES: continuous-mode // RUN: rm -f %t.profraw // RUN: %clangxx_pgogen_cont -lpthread %s -o %t.exe -mllvm -disable-vp -fprofile-update=atomic diff --git a/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c b/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c index 54346487a5c79..c1931410f8c76 100644 --- a/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c +++ b/compiler-rt/test/profile/ContinuousSyncMode/online-merging.c @@ -1,4 +1,4 @@ -// REQUIRES: target={{.*(darwin|aix).*}} +// REQUIRES: continuous-mode // Test the online merging mode (%m) along with continuous mode (%c). // diff --git a/compiler-rt/test/profile/ContinuousSyncMode/pid-substitution.c b/compiler-rt/test/profile/ContinuousSyncMode/pid-substitution.c index 309b685a95c5b..8a00b28825cae 100644 --- a/compiler-rt/test/profile/ContinuousSyncMode/pid-substitution.c +++ b/compiler-rt/test/profile/ContinuousSyncMode/pid-substitution.c @@ -1,4 +1,4 @@ -// REQUIRES: target={{.*(darwin|aix).*}} +// REQUIRES: continuous-mode // RUN: rm -rf %t.dir && mkdir -p %t.dir // RUN: %clang_pgogen_cont -o %t.exe %s diff --git a/compiler-rt/test/profile/ContinuousSyncMode/set-filename.c b/compiler-rt/test/profile/ContinuousSyncMode/set-filename.c index 106e12e4e3b6e..abc72646d16b4 100644 --- a/compiler-rt/test/profile/ContinuousSyncMode/set-filename.c +++ b/compiler-rt/test/profile/ContinuousSyncMode/set-filename.c @@ -1,4 +1,4 @@ -// REQUIRES: target={{.*(darwin|aix).*}} +// REQUIRES: continuous-mode // RUN: %clang_pgogen_cont -o %t.exe %s // RUN: env LLVM_PROFILE_FILE="%c%t.profraw" %run %t.exe %t.profraw %t.bad diff --git a/compiler-rt/test/profile/lit.cfg.py b/compiler-rt/test/profile/lit.cfg.py index 72a389eaf0dfb..fc2baf7c40b8f 100644 --- a/compiler-rt/test/profile/lit.cfg.py +++ b/compiler-rt/test/profile/lit.cfg.py @@ -31,7 +31,7 @@ def get_required_attr(config, attr_name): target_is_msvc = bool(re.match(r".*-windows-msvc$", config.target_triple)) # Whether continous profile collection (%c) requires runtime counter relocation on this platform -runtime_reloc = bool(config.host_os in ["AIX"]) +runtime_reloc = bool(config.host_os in ["AIX", "Linux"]) if config.host_os in ["Linux"]: extra_link_flags = ["-ldl"] @@ -210,3 +210,6 @@ def exclude_unsupported_files_for_aix(dirname): if config.have_curl: config.available_features.add("curl") + +if config.host_os in ("AIX", "Darwin", "Linux"): + config.available_features.add("continuous-mode")