1
Fork 0

Add the ability to xfail tests by platform

We'll use this to xfail some unwinding tests on windows
This commit is contained in:
Brian Anderson 2011-09-09 13:24:06 -07:00
parent 22001d1dce
commit d00be1d962

View file

@ -50,11 +50,16 @@ fn is_test_ignored(config: &config, testfile: &str) -> bool {
for each ln: str in iter_header(testfile) {
// FIXME: Can't return or break from iterator
found = found || parse_name_directive(ln, "xfail-test");
found = found || parse_name_directive(ln, xfail_target());
if (config.mode == common::mode_pretty) {
found = found || parse_name_directive(ln, "xfail-pretty");
}
}
ret found;
fn xfail_target() -> str {
"xfail-" + std::os::target_os()
}
}
iter iter_header(testfile: &str) -> str {