Fix fast-check target by disabling code snippet printing on warnings (broken on .rc files) and adding an xfail-fast flag for global-scope.rs.

This commit is contained in:
Graydon Hoare 2011-07-12 17:36:40 -07:00
parent 2e827eab24
commit e53cfb979b
3 changed files with 7 additions and 2 deletions

View File

@ -63,7 +63,10 @@ fn emit_diagnostic(&option::t[span] sp, &str msg, &str kind, u8 color,
alt (sp) {
case (some(?ssp)) {
ss = span_to_str(ssp, cm);
maybe_lines = some(span_to_lines(ssp, cm));
// FIXME: we're not able to look up lines read from .rc files yet.
// maybe_lines = some(span_to_lines(ssp, cm));
}
case (none) { }
}

View File

@ -25,7 +25,8 @@ for t in os.listdir(run_pass):
if t.endswith(".rs"):
f = codecs.open(os.path.join(run_pass, t), "r", "utf8")
s = f.read()
if not ("xfail-stage2" in s):
if not ("xfail-stage2" in s or
"xfail-fast" in s):
stage2_tests.append(t)
if "main(vec[str] args)" in s:
take_args[t] = True

View File

@ -1,4 +1,5 @@
// xfail-stage0
// xfail-fast
fn f() -> int { ret 1; }