Skip to content

Commit 540c022

Browse files
committed
---
yaml --- r: 49487 b: refs/heads/master c: f832339 h: refs/heads/master i: 49485: 5ae3a52 49483: b884900 49479: c9769aa 49471: e208a91 v: v3
1 parent 4ace8ad commit 540c022

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 429b8a9b9e48925fa34b02b05568e630d78c855b
2+
refs/heads/master: f8323397aa3c7358d3c2d3fb62038768b26bfdad
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
55
refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea

trunk/src/compiletest/runtest.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ fn run_debuginfo_test(config: config, props: TestProps, testfile: &Path) {
267267
// check if each line in props.check_lines appears in the
268268
// output (in order)
269269
let mut i = 0u;
270-
for str::lines(ProcRes.stdout).each |line| {
270+
for str::lines_each(ProcRes.stdout) |line| {
271271
if props.check_lines[i].trim() == line.trim() {
272272
i += 1u;
273273
}
@@ -297,8 +297,8 @@ fn check_error_patterns(props: TestProps,
297297
let mut next_err_idx = 0u;
298298
let mut next_err_pat = props.error_patterns[next_err_idx];
299299
let mut done = false;
300-
for str::split_char(ProcRes.stderr, '\n').each |line| {
301-
if str::contains(*line, next_err_pat) {
300+
for str::lines_each(ProcRes.stderr) |line| {
301+
if str::contains(line, next_err_pat) {
302302
debug!("found error pattern %s", next_err_pat);
303303
next_err_idx += 1u;
304304
if next_err_idx == vec::len(props.error_patterns) {
@@ -347,15 +347,15 @@ fn check_expected_errors(expected_errors: ~[errors::ExpectedError],
347347
// filename:line1:col1: line2:col2: *warning:* msg
348348
// where line1:col1: is the starting point, line2:col2:
349349
// is the ending point, and * represents ANSI color codes.
350-
for str::split_char(ProcRes.stderr, '\n').each |line| {
350+
for str::lines_each(ProcRes.stderr) |line| {
351351
let mut was_expected = false;
352352
for vec::eachi(expected_errors) |i, ee| {
353353
if !found_flags[i] {
354354
debug!("prefix=%s ee.kind=%s ee.msg=%s line=%s",
355-
prefixes[i], ee.kind, ee.msg, *line);
356-
if (str::starts_with(*line, prefixes[i]) &&
357-
str::contains(*line, ee.kind) &&
358-
str::contains(*line, ee.msg)) {
355+
prefixes[i], ee.kind, ee.msg, line);
356+
if (str::starts_with(line, prefixes[i]) &&
357+
str::contains(line, ee.kind) &&
358+
str::contains(line, ee.msg)) {
359359
found_flags[i] = true;
360360
was_expected = true;
361361
break;
@@ -364,13 +364,13 @@ fn check_expected_errors(expected_errors: ~[errors::ExpectedError],
364364
}
365365

366366
// ignore this msg which gets printed at the end
367-
if str::contains(*line, ~"aborting due to") {
367+
if str::contains(line, ~"aborting due to") {
368368
was_expected = true;
369369
}
370370

371-
if !was_expected && is_compiler_error_or_warning(*line) {
371+
if !was_expected && is_compiler_error_or_warning(str::from_slice(line)) {
372372
fatal_ProcRes(fmt!("unexpected compiler error or warning: '%s'",
373-
*line),
373+
line),
374374
ProcRes);
375375
}
376376
}

0 commit comments

Comments
 (0)