File tree Expand file tree Collapse file tree 4 files changed +812
-3
lines changed Expand file tree Collapse file tree 4 files changed +812
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: b00aa12374d01b1caadbcfc2b0de76d8bb884192
8
+ refs/heads/try2: 29a67d1dc2a171997902f847375ed684b8bdb32c
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change @@ -20,16 +20,30 @@ use procsrv;
20
20
use util;
21
21
use util:: logv;
22
22
23
+ use std:: cell:: Cell ;
23
24
use std:: io;
24
25
use std:: os;
25
26
use std:: str;
27
+ use std:: task:: { spawn_sched, SingleThreaded } ;
26
28
use std:: vec;
27
29
28
30
use extra:: test:: MetricMap ;
29
31
30
32
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
+ }
33
47
}
34
48
35
49
pub fn run_metrics ( config : config , testfile : ~str , mm : & mut MetricMap ) {
Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ pub mod semver;
105
105
pub mod fileinput;
106
106
pub mod flate;
107
107
pub mod hex;
108
+ pub mod uuid;
109
+
108
110
109
111
#[ cfg( unicode) ]
110
112
mod unicode;
You can’t perform that action at this time.
0 commit comments