diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-04-30 14:36:18 +0200 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-05-02 08:55:08 +0200 |
| commit | 880e300ed7a35de9ecff489d7fc0d24f2e975109 (patch) | |
| tree | 41579eecd1d070c66f8d04a384008635d6eff85e /src | |
| parent | c14aa7eba88a3d0a26513dbb2a3acdcdcfc5072d (diff) | |
| download | rust-880e300ed7a35de9ecff489d7fc0d24f2e975109.tar.gz rust-880e300ed7a35de9ecff489d7fc0d24f2e975109.zip | |
mod items need to be marked with `cfg(test)` not `test`.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/task/mod.rs | 2 | ||||
| -rw-r--r-- | src/libstd/cmp.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/task/mod.rs b/src/libcore/task/mod.rs index 2a4817727f4..0e97c101dc6 100644 --- a/src/libcore/task/mod.rs +++ b/src/libcore/task/mod.rs @@ -797,7 +797,7 @@ fn test_run_basic() { po.recv(); } -#[test] +#[cfg(test)] struct Wrapper { mut f: Option<Chan<()>> } diff --git a/src/libstd/cmp.rs b/src/libstd/cmp.rs index 5d7f64a7c8f..ea3793c1374 100644 --- a/src/libstd/cmp.rs +++ b/src/libstd/cmp.rs @@ -64,7 +64,7 @@ fn test_fuzzy_eq_eps() { assert!(!(&1.5f).fuzzy_eq_eps(&0.9, &0.5)); } -#[test] +#[cfg(test)] mod test_complex{ use cmp::*; |
