Skip to content

Commit 1fd64fe

Browse files
committed
---
yaml --- r: 144023 b: refs/heads/try2 c: 29a67d1 h: refs/heads/master i: 144021: 87cda3f 144019: db8249f 144015: f3cc806 v: v3
1 parent 19ff191 commit 1fd64fe

File tree

4 files changed

+812
-3
lines changed

4 files changed

+812
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: b00aa12374d01b1caadbcfc2b0de76d8bb884192
8+
refs/heads/try2: 29a67d1dc2a171997902f847375ed684b8bdb32c
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/compiletest/runtest.rs

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,30 @@ use procsrv;
2020
use util;
2121
use util::logv;
2222

23+
use std::cell::Cell;
2324
use std::io;
2425
use std::os;
2526
use std::str;
27+
use std::task::{spawn_sched, SingleThreaded};
2628
use std::vec;
2729

2830
use extra::test::MetricMap;
2931

3032
pub fn run(config: config, testfile: ~str) {
31-
let mut _mm = MetricMap::new();
32-
run_metrics(config, testfile, &mut _mm);
33+
let config = Cell::new(config);
34+
let testfile = Cell::new(testfile);
35+
// FIXME #6436: Creating another thread to run the test because this
36+
// is going to call waitpid. The new scheduler has some strange
37+
// interaction between the blocking tasks and 'friend' schedulers
38+
// that destroys parallelism if we let normal schedulers block.
39+
// It should be possible to remove this spawn once std::run is
40+
// rewritten to be non-blocking.
41+
do spawn_sched(SingleThreaded) {
42+
let config = config.take();
43+
let testfile = testfile.take();
44+
let mut _mm = MetricMap::new();
45+
run_metrics(config, testfile, &mut _mm);
46+
}
3347
}
3448

3549
pub fn run_metrics(config: config, testfile: ~str, mm: &mut MetricMap) {

branches/try2/src/libextra/extra.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ pub mod semver;
105105
pub mod fileinput;
106106
pub mod flate;
107107
pub mod hex;
108+
pub mod uuid;
109+
108110

109111
#[cfg(unicode)]
110112
mod unicode;

0 commit comments

Comments
 (0)