-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// except according to those terms.
// compile-flags: --test --cfg ignorecfg
-// xfail-fast
-
-extern mod std;
#[test]
#[ignore(cfg(ignorecfg))]
#[test]
fn checktests() {
// Pull the tests out of the secreturn test module
- let tests = __test::tests;
+ let tests = __test::TESTS;
- assert vec::any(
- tests,
- |t| t.desc.name.to_str() == ~"shouldignore" && t.desc.ignore);
+ assert!(
+ tests.iter().any(|t| t.desc.name.to_str() == "shouldignore".to_owned() &&
+ t.desc.ignore));
- assert vec::any(
- tests,
- |t| t.desc.name.to_str() == ~"shouldnotignore" && !t.desc.ignore);
+ assert!(
+ tests.iter().any(|t| t.desc.name.to_str() == "shouldnotignore".to_owned() &&
+ !t.desc.ignore));
}