Skip to content

Commit 42520d3

Browse files
tmiaskomark-i-m
authored andcommitted
Document needs-* compiletest directives
1 parent a960baa commit 42520d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tests/adding.md

+7
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,13 @@ source.
185185
errors when usage of a gated feature is attempted without the proper
186186
`#![feature(X)]` tag. Each unstable lang feature is required to
187187
have a gate test.
188+
* `needs-profiler-support` - a profiler runtime is required, i.e.,
189+
`profiler = true` in rustc's `config.toml`.
190+
* `needs-sanitizer-support` - a sanitizer runtime is required, i.e.,
191+
`sanitizers = true` in rustc's `config.toml`.
192+
* `needs-sanitizer-{address,leak,memory,thread}` - indicates that test
193+
requires a target with a support for AddressSanitizer, LeakSanitizer,
194+
MemorySanitizer or ThreadSanitizer respectively.
188195

189196
[`header.rs`]: https://github.com/rust-lang/rust/tree/master/src/tools/compiletest/src/header.rs
190197
[bless]: ./running.md#editing-and-updating-the-reference-files

0 commit comments

Comments
 (0)