diff options
Diffstat (limited to 'src/tools/compiletest')
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 7084c407a64..9e8443cd13c 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -506,8 +506,9 @@ impl<'test> TestCx<'test> { // Generate `cfg(FALSE, REV1, ..., REVN)` (for all possible revisions) // // For compatibility reason we consider the `FALSE` cfg to be expected - // since it is extensively used in the testsuite. - check_cfg.push_str("cfg(FALSE"); + // since it is extensively used in the testsuite, as well as the `test` + // cfg since we have tests that uses it. + check_cfg.push_str("cfg(test,FALSE"); for revision in &self.props.revisions { check_cfg.push(','); check_cfg.push_str(&normalize_revision(revision)); |
