summary refs log tree commit diff
path: root/src/compiletest
diff options
context:
space:
mode:
authorBen Striegel <ben.striegel@gmail.com>2015-11-04 17:11:01 -0800
committerBen Striegel <ben.striegel@gmail.com>2015-11-04 18:43:30 -0800
commita2efa2aa291c938200da59b89b14214c8d2c70ba (patch)
tree04466ab4806a7342bc0e869d81624024860e3068 /src/compiletest
parenteffcd29652bbf16981d9cd0d8a578681b2ed55bb (diff)
downloadrust-a2efa2aa291c938200da59b89b14214c8d2c70ba.tar.gz
rust-a2efa2aa291c938200da59b89b14214c8d2c70ba.zip
Deprecate `_ms` functions that predate the `Duration` API
Diffstat (limited to 'src/compiletest')
-rw-r--r--src/compiletest/runtest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs
index 8db6725f7a8..8042e2f966c 100644
--- a/src/compiletest/runtest.rs
+++ b/src/compiletest/runtest.rs
@@ -430,7 +430,7 @@ fn run_debuginfo_gdb_test(config: &Config, props: &TestProps, testfile: &Path) {
                 .expect(&format!("failed to exec `{:?}`", config.adb_path));
             loop {
                 //waiting 1 second for gdbserver start
-                ::std::thread::sleep_ms(1000);
+                ::std::thread::sleep(::std::time::Duration::new(1,0));
                 if TcpStream::connect("127.0.0.1:5039").is_ok() {
                     break
                 }