We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43924f1 commit 8a8ca18Copy full SHA for 8a8ca18
src/libcore/task.rs
@@ -2425,10 +2425,14 @@ fn test_tls_cleanup_on_failure() unsafe {
2425
2426
#[test]
2427
fn test_sched_thread_per_core() {
2428
- let cores = rustrt::rust_num_threads();
2429
- let mut reported_threads = 0u;
+ let (chan, port) = pipes::stream();
+
2430
do spawn_sched(ThreadPerCore) {
2431
- reported_threads = rustrt::sched_threads();
+ let cores = rustrt::rust_num_threads();
2432
+ let reported_threads = rustrt::sched_threads();
2433
+ assert(cores as uint == reported_threads as uint);
2434
+ chan.send(());
2435
}
- assert(cores == reported_threads);
2436
2437
+ port.recv();
2438
0 commit comments