diff options
Diffstat (limited to 'src/doc/guide-testing.md')
| -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 |
