mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
Fix broken test in core::task
This commit is contained in:
+8
-4
@@ -2425,10 +2425,14 @@ fn int_key(+_x: @int) { }
|
||||
|
||||
#[test]
|
||||
fn test_sched_thread_per_core() {
|
||||
let cores = rustrt::rust_num_threads();
|
||||
let mut reported_threads = 0u;
|
||||
let (chan, port) = pipes::stream();
|
||||
|
||||
do spawn_sched(ThreadPerCore) {
|
||||
reported_threads = rustrt::sched_threads();
|
||||
let cores = rustrt::rust_num_threads();
|
||||
let reported_threads = rustrt::sched_threads();
|
||||
assert(cores as uint == reported_threads as uint);
|
||||
chan.send(());
|
||||
}
|
||||
assert(cores == reported_threads);
|
||||
|
||||
port.recv();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user