diff options
| author | bors <bors@rust-lang.org> | 2014-09-27 01:37:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-09-27 01:37:53 +0000 |
| commit | 43d7d7c15e964c1cb506cbce90bb4b32b57281b8 (patch) | |
| tree | ce3d1c405d06461fb8de8ba58b7f62440be5d199 /src/doc | |
| parent | d64b4103d688f38c2e9e2daf966d50beeb383f1e (diff) | |
| parent | dcdbdc10036b444ef39c329e9440d4acc6975fda (diff) | |
auto merge of #17506 : sfackler/rust/cfg-attr, r=alexcrichton
cc #17490 Reopening of #16230
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/guide-testing.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/guide-testing.md b/src/doc/guide-testing.md index 6fb198fbd2b..07813855d9b 100644 --- a/src/doc/guide-testing.md +++ b/src/doc/guide-testing.md @@ -72,8 +72,8 @@ is not used. Tests that should not be run can be annotated with the `ignore` attribute. The existence of these tests will be noted in the test runner output, but the test will not be run. Tests can also be ignored -by configuration so, for example, to ignore a test on windows you can -write `#[ignore(cfg(target_os = "win32"))]`. +by configuration using the `cfg_attr` attribute so, for example, to ignore a +test on windows you can write `#[cfg_attr(windows, ignore)]`. Tests that are intended to fail can be annotated with the `should_fail` attribute. The test will be run, and if it causes its |
