Add ignore-cross-compile directive for compiletest

Loadable syntax extensions don't work when cross compiling (see #12102), so the
fourcc tests all need to be ignored. They're valuable tests, so they shouldn't
be outright ignored, so they're now flagged with ignore-cross-compile
This commit is contained in:
Alex Crichton 2014-02-11 11:44:01 -08:00
parent 4c967e7041
commit 314b02b373
6 changed files with 7 additions and 5 deletions

View File

@ -108,6 +108,8 @@ pub fn is_test_ignored(config: &config, testfile: &Path) -> bool {
else if parse_name_directive(ln, ignore_stage(config)) { false }
else if config.mode == common::mode_pretty &&
parse_name_directive(ln, "ignore-pretty") { false }
else if config.target != config.host &&
parse_name_directive(ln, "ignore-cross-compile") { false }
else { true }
});

View File

@ -10,7 +10,7 @@
// ignore-stage1
// ignore-pretty
// ignore-android
// ignore-cross-compile #12102
#[feature(phase)];

View File

@ -10,7 +10,7 @@
// ignore-stage1
// ignore-pretty
// ignore-android
// ignore-cross-compile #12102
#[feature(phase)];

View File

@ -10,7 +10,7 @@
// ignore-stage1
// ignore-pretty
// ignore-android
// ignore-cross-compile #12102
#[feature(phase)];

View File

@ -10,7 +10,7 @@
// ignore-stage1
// ignore-pretty
// ignore-android
// ignore-cross-compile #12102
#[feature(phase)];

View File

@ -10,7 +10,7 @@
// ignore-stage1
// ignore-pretty
// ignore-android
// ignore-cross-compile #12102
#[feature(phase)];