Skip to content

Commit 592d621

Browse files
committed
Auto merge of #1444 - RalfJung:rustup, r=RalfJung
rustup, and adjust timing tests I saw a timing failure on macOS, so leave some more slack space.
2 parents faff9a7 + dcb2b30 commit 592d621

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d3cba254e464303a6495942f3a831c2bbd7f1768
1+
680a4b2fbdca0dc6c5ceec826a8dbeabe28f305d

tests/run-pass/concurrency/libc_pthread_cond.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ fn test_timed_wait_timeout(clock_id: i32) {
2525

2626
let mut now: libc::timespec = mem::zeroed();
2727
assert_eq!(libc::clock_gettime(clock_id, &mut now), 0);
28+
// Waiting for a second... mostly because waiting less requires mich more tricky arithmetic.
29+
// FIXME: wait less.
2830
let timeout = libc::timespec { tv_sec: now.tv_sec + 1, tv_nsec: now.tv_nsec };
2931

3032
assert_eq!(libc::pthread_mutex_lock(&mut mutex as *mut _), 0);

tests/run-pass/concurrency/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn check_conditional_variables_timed_wait_notimeout() {
109109
cvar.notify_one();
110110
});
111111

112-
let (_guard, timeout) = cvar.wait_timeout(guard, Duration::from_millis(100)).unwrap();
112+
let (_guard, timeout) = cvar.wait_timeout(guard, Duration::from_millis(200)).unwrap();
113113
assert!(!timeout.timed_out());
114114
handle.join().unwrap();
115115
}

0 commit comments

Comments
 (0)