提交 e53cfb97 编写于 作者: G Graydon Hoare

Fix fast-check target by disabling code snippet printing on warnings (broken...

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.
上级 2e827eab
......@@ -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) { }
}
......
......@@ -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
......
// xfail-stage0
// xfail-fast
fn f() -> int { ret 1; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册