Fixup the rest of the tests in the compiler
This commit is contained in:
parent
f47e4b2874
commit
0547fb9cad
7 changed files with 7 additions and 5 deletions
|
@ -1131,6 +1131,7 @@ mod test {
|
||||||
|
|
||||||
use extra::getopts::groups::getopts;
|
use extra::getopts::groups::getopts;
|
||||||
use syntax::attr;
|
use syntax::attr;
|
||||||
|
use syntax::attr::AttrMetaMethods;
|
||||||
use syntax::diagnostic;
|
use syntax::diagnostic;
|
||||||
|
|
||||||
// When the user supplies --test we should implicitly supply --cfg test
|
// When the user supplies --test we should implicitly supply --cfg test
|
||||||
|
|
|
@ -522,7 +522,7 @@ static H256: [u32, ..8] = [
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::{Digest, Sha256};
|
use super::{Digest, Sha256, FixedBuffer};
|
||||||
use std::vec;
|
use std::vec;
|
||||||
use std::rand::isaac::IsaacRng;
|
use std::rand::isaac::IsaacRng;
|
||||||
use std::rand::Rng;
|
use std::rand::Rng;
|
||||||
|
@ -633,7 +633,7 @@ mod tests {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod bench {
|
mod bench {
|
||||||
use extra::test::BenchHarness;
|
use extra::test::BenchHarness;
|
||||||
use super::Sha256;
|
use super::{Sha256, FixedBuffer, Digest};
|
||||||
|
|
||||||
#[bench]
|
#[bench]
|
||||||
pub fn sha256_10(bh: &mut BenchHarness) {
|
pub fn sha256_10(bh: &mut BenchHarness) {
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
// rustpkg unit tests
|
// rustpkg unit tests
|
||||||
|
|
||||||
|
use CtxMethods;
|
||||||
use context::{BuildContext, Context, RustcFlags};
|
use context::{BuildContext, Context, RustcFlags};
|
||||||
use std::{os, run, str, task};
|
use std::{os, run, str, task};
|
||||||
use std::io;
|
use std::io;
|
||||||
|
|
|
@ -125,7 +125,7 @@ impl Drop for AsyncWatcher {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod test_remote {
|
mod test_remote {
|
||||||
use std::rt::rtio::Callback;
|
use std::rt::rtio::{Callback, RemoteCallback};
|
||||||
use std::rt::thread::Thread;
|
use std::rt::thread::Thread;
|
||||||
|
|
||||||
use super::AsyncWatcher;
|
use super::AsyncWatcher;
|
||||||
|
|
|
@ -140,7 +140,7 @@ mod imp {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use option::{Some, None};
|
use prelude::*;
|
||||||
use super::*;
|
use super::*;
|
||||||
use unstable::finally::Finally;
|
use unstable::finally::Finally;
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
use container::Container;
|
use container::Container;
|
||||||
use fmt;
|
|
||||||
use from_str::from_str;
|
use from_str::from_str;
|
||||||
use iter::Iterator;
|
use iter::Iterator;
|
||||||
use libc::exit;
|
use libc::exit;
|
||||||
|
|
|
@ -1109,6 +1109,7 @@ mod test {
|
||||||
use codemap;
|
use codemap;
|
||||||
use codemap::Spanned;
|
use codemap::Spanned;
|
||||||
use fold;
|
use fold;
|
||||||
|
use fold::*;
|
||||||
use parse;
|
use parse;
|
||||||
use parse::token::{fresh_mark, gensym, intern, ident_to_str};
|
use parse::token::{fresh_mark, gensym, intern, ident_to_str};
|
||||||
use parse::token;
|
use parse::token;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue