diff options
| author | Steven Fackler <sfackler@gmail.com> | 2014-08-03 17:41:58 -0700 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2014-09-23 23:49:20 -0700 |
| commit | 65cca7c8b14e9c5673af4921a57c2ccbac3fc2cb (patch) | |
| tree | 2a693f86b51ea3725368b408efcc25d83041b9bd /src/doc | |
| parent | e520bb1b2f1667f17c3503af71273921c4fc9989 (diff) | |
Deprecate `#[ignore(cfg(...))]`
Replace `#[ignore(cfg(a, b))]` with `#[cfg_attr(all(a, b), ignore)]`
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 |
