@@ -14,31 +14,33 @@ import std::task;
14
14
15
15
tag mode { mode_compile_fail; mode_run_fail; mode_run_pass; }
16
16
17
- type config = // The library paths required for running the compiler
18
- // The library paths required for running compiled programs
19
- // The rustc executable
20
- // The directory containing the tests to run
21
- // The directory where programs should be built
22
- // The name of the stage being built (stage1, etc)
23
- // The test mode, compile-fail, run-fail, run-pass
24
- // Run ignored tests
25
- // Only run tests that match this filter
26
- // A command line to prefix program execution with,
27
- // for running under valgrind
28
- // Flags to pass to the compiler
29
- // Explain what's going on
30
- { compile_lib_path: str ,
31
- run_lib_path: str,
32
- rustc_path: str,
33
- src_base: str,
34
- build_base: str,
35
- stage_id: str,
36
- mode: mode,
37
- run_ignored: bool,
38
- filter: option:: t[ str] ,
39
- runtool: option:: t[ str] ,
40
- rustcflags: option:: t[ str] ,
41
- verbose: bool} ;
17
+ type config = {
18
+ // The library paths required for running the compiler
19
+ compile_lib_path: str ,
20
+ // The library paths required for running compiled programs
21
+ run_lib_path: str ,
22
+ // The rustc executable
23
+ rustc_path: str ,
24
+ // The directory containing the tests to run
25
+ src_base: str ,
26
+ // The directory where programs should be built
27
+ build_base: str ,
28
+ // The name of the stage being built (stage1, etc)
29
+ stage_id: str ,
30
+ // The test mode, compile-fail, run-fail, run-pass
31
+ mode: mode,
32
+ // Run ignored tests
33
+ run_ignored: bool ,
34
+ // Only run tests that match this filter
35
+ filter: option:: t[ str] ,
36
+ // A command line to prefix program execution with,
37
+ // for running under valgrind
38
+ runtool: option:: t[ str] ,
39
+ // Flags to pass to the compiler
40
+ rustcflags: option:: t[ str] ,
41
+ // Explain what's going on
42
+ verbose: bool
43
+ } ;
42
44
43
45
fn main ( args : vec[ str ] ) {
44
46
@@ -230,7 +232,8 @@ So actually shuttling structural data across tasks isn't possible at this
230
232
time, but we can send strings! Sadly, I need the whole config record, in the
231
233
test task so, instead of fixing the mechanism in the compiler I'm going to
232
234
break up the config record and pass everything individually to the spawned
233
- function. */
235
+ function.
236
+ */
234
237
235
238
fn closure_to_task ( cx : cx , configport : port[ str ] , testfn : & fn ( ) ) -> task {
236
239
testfn ( ) ;
0 commit comments