Skip to content

Commit e3db29c

Browse files
committed
---
yaml --- r: 4583 b: refs/heads/master c: d662614 h: refs/heads/master i: 4581: 8c88155 4579: d461bde 4575: 730e6d3 v: v3
1 parent 2db1124 commit e3db29c

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 4caeba917860e64bda52174cec3895b4430e7ca8
2+
refs/heads/master: d6626143cccc0599d2b5ac6e7627708273608063

trunk/src/test/compiletest/procsrv.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ fn close(handle: &handle) {
5454
}
5555

5656
fn run(handle: &handle, lib_path: &str,
57-
prog: &str, args: &vec[str], input: &option::t[str]) ->
57+
prog: &str, args: &[str], input: &option::t[str]) ->
5858
{status: int, out: str, err: str} {
5959
let p = port[response]();
6060
let ch = chan(p);
6161
task::send(handle.chan, exec(lib_path,
6262
prog,
63-
clone_ivecstr(ivec::from_vec(args)),
63+
clone_ivecstr(args),
6464
task::clone_chan(ch)));
6565
let resp = task::recv(p);
6666

trunk/src/test/compiletest/runtest.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ fn run_pretty_test(cx: &cx, props: &test_props, testfile: &str) {
150150

151151
fn make_pp_args(config: &config, testfile: &str) -> procargs {
152152
let prog = config.rustc_path;
153-
let args = ["-", "--pretty", "normal"];
153+
let args = ~["-", "--pretty", "normal"];
154154
ret {prog: prog, args: args};
155155
}
156156

@@ -180,7 +180,7 @@ actual:\n\
180180

181181
fn make_typecheck_args(config: &config, testfile: &str) -> procargs {
182182
let prog = config.rustc_path;
183-
let args = ["-", "--no-trans", "--lib"];
183+
let args = ~["-", "--no-trans", "--lib"];
184184
ret {prog: prog, args: args};
185185
}
186186
}
@@ -219,7 +219,7 @@ fn check_error_patterns(props: &test_props, testfile: &str,
219219
}
220220
}
221221

222-
type procargs = {prog: str, args: vec[str]};
222+
type procargs = {prog: str, args: [str]};
223223

224224
type procres = {status: int, stdout: str, stderr: str, cmdline: str};
225225

@@ -248,7 +248,7 @@ fn make_compile_args(config: &config,
248248
props: &test_props, testfile: &str) ->
249249
procargs {
250250
let prog = config.rustc_path;
251-
let args = [testfile, "-o", make_exe_name(config, testfile)];
251+
let args = ~[testfile, "-o", make_exe_name(config, testfile)];
252252
args += split_maybe_args(config.rustcflags);
253253
args += split_maybe_args(props.compile_flags);
254254
ret {prog: prog, args: args};
@@ -265,15 +265,15 @@ fn make_run_args(config: &config,
265265
// then split apart its command
266266
split_maybe_args(config.runtool)
267267
} else {
268-
[]
268+
~[]
269269
};
270270

271-
let args = toolargs + [make_exe_name(config, testfile)];
272-
ret {prog: args.(0), args: vec::slice(args, 1u, vec::len(args))};
271+
let args = toolargs + ~[make_exe_name(config, testfile)];
272+
ret {prog: args.(0), args: ivec::slice(args, 1u, ivec::len(args))};
273273
}
274274

275-
fn split_maybe_args(argstr: &option::t[str]) -> vec[str] {
276-
fn rm_whitespace(v: vec[str]) -> vec[str] {
275+
fn split_maybe_args(argstr: &option::t[str]) -> [str] {
276+
fn rm_whitespace(v: &[str]) -> [str] {
277277
fn flt(s: &str) -> option::t[str] {
278278
if !is_whitespace(s) {
279279
option::some(s)
@@ -289,17 +289,17 @@ fn split_maybe_args(argstr: &option::t[str]) -> vec[str] {
289289
}
290290
ret true;
291291
}
292-
vec::filter_map(flt, v)
292+
ivec::filter_map(flt, v)
293293
}
294294

295295
alt argstr {
296-
option::some(s) { rm_whitespace(str::split(s, ' ' as u8)) }
297-
option::none. { [] }
296+
option::some(s) { rm_whitespace(str::split_ivec(s, ' ' as u8)) }
297+
option::none. { ~[] }
298298
}
299299
}
300300

301301
fn program_output(cx: &cx, testfile: &str, lib_path: &str, prog: &str,
302-
args: &vec[str], input: option::t[str]) -> procres {
302+
args: &[str], input: option::t[str]) -> procres {
303303
let cmdline =
304304
{
305305
let cmdline = make_cmdline(lib_path, prog, args);
@@ -313,9 +313,9 @@ fn program_output(cx: &cx, testfile: &str, lib_path: &str, prog: &str,
313313
stderr: res.err, cmdline: cmdline};
314314
}
315315

316-
fn make_cmdline(libpath: &str, prog: &str, args: &vec[str]) -> str {
316+
fn make_cmdline(libpath: &str, prog: &str, args: &[str]) -> str {
317317
#fmt("%s %s %s", lib_path_cmd_prefix(libpath), prog,
318-
str::connect(args, " "))
318+
str::connect_ivec(args, " "))
319319
}
320320

321321
// Build the LD_LIBRARY_PATH variable as it would be seen on the command line

0 commit comments

Comments
 (0)