diff options
| author | Brian Anderson <banderson@mozilla.com> | 2014-07-31 18:03:20 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2014-08-13 11:31:48 -0700 |
| commit | 80d32438d665ae74ffb1bc5ad60f7329ed17f39a (patch) | |
| tree | 8dd6339bc87a429115512f05e59ae03295224d2d | |
| parent | 77cdaf018c98c1a89afcf8382c3f3e90907f49a7 (diff) | |
| download | rust-80d32438d665ae74ffb1bc5ad60f7329ed17f39a.tar.gz rust-80d32438d665ae74ffb1bc5ad60f7329ed17f39a.zip | |
Fix compiletest to use Duration
| -rw-r--r-- | src/compiletest/runtest.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index a9c7673d4dd..318609f44fd 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -30,6 +30,7 @@ use std::os; use std::str; use std::string::String; use std::task; +use std::time::Duration; use test::MetricMap; pub fn run(config: Config, testfile: String) { @@ -400,7 +401,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) { .expect(format!("failed to exec `{}`", config.adb_path).as_slice()); loop { //waiting 1 second for gdbserver start - timer::sleep(1000); + timer::sleep(Duration::milliseconds(1000)); let result = task::try(proc() { tcp::TcpStream::connect("127.0.0.1", 5039).unwrap(); }); |
