From 0e2bebfe2dce9837f6fd017f958d7a818ae9ab7d Mon Sep 17 00:00:00 2001 From: Stuart Cook Date: Thu, 10 Oct 2024 09:27:13 +1100 Subject: [PATCH] Rename `needs-profiler-support` to `needs-profiler-runtime` (#2095) --- src/llvm-coverage-instrumentation.md | 2 +- src/tests/compiletest.md | 2 +- src/tests/directives.md | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/llvm-coverage-instrumentation.md b/src/llvm-coverage-instrumentation.md index 2a4531d2..2cd0b4b5 100644 --- a/src/llvm-coverage-instrumentation.md +++ b/src/llvm-coverage-instrumentation.md @@ -317,7 +317,7 @@ These tests compile and run a test program with coverage instrumentation, then use LLVM tools to convert the coverage data into a human-readable coverage report. -> Tests in `coverage-run` mode have an implicit `// needs-profiler-support` +> Tests in `coverage-run` mode have an implicit `//@ needs-profiler-runtime` > directive, so they will be skipped if the profiler runtime has not been > [enabled in `config.toml`](#recommended-configtoml-settings). diff --git a/src/tests/compiletest.md b/src/tests/compiletest.md index ebf803a9..41cc141a 100644 --- a/src/tests/compiletest.md +++ b/src/tests/compiletest.md @@ -676,7 +676,7 @@ also registered as an additional prefix for FileCheck directives: ```rust,ignore //@ revisions: NORMAL COVERAGE //@[COVERAGE] compile-flags: -Cinstrument-coverage -//@[COVERAGE] needs-profiler-support +//@[COVERAGE] needs-profiler-runtime // COVERAGE: @__llvm_coverage_mapping // NORMAL-NOT: @__llvm_coverage_mapping diff --git a/src/tests/directives.md b/src/tests/directives.md index ad12fd0b..66ba0d14 100644 --- a/src/tests/directives.md +++ b/src/tests/directives.md @@ -153,8 +153,9 @@ settings: - `needs-asm-support` — ignores if it is running on a target that doesn't have stable support for `asm!` -- `needs-profiler-support` — ignores if profiler support was not enabled for the - target (`profiler = true` in rustc's `config.toml`) +- `needs-profiler-runtime` — ignores the test if the profiler runtime was not + enabled for the target + (`build.profiler = true` in rustc's `config.toml`) - `needs-sanitizer-support` — ignores if the sanitizer support was not enabled for the target (`sanitizers = true` in rustc's `config.toml`) - `needs-sanitizer-{address,hwaddress,leak,memory,thread}` — ignores if the