Skip to content

Commit 66b6056

Browse files
committed
---
yaml --- r: 216329 b: refs/heads/stable c: 60f8f6b h: refs/heads/master i: 216327: 57c71ff v: v3
1 parent 78f58fe commit 66b6056

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 7dd62155d85e9556c2b2b70c03acce9910896696
32+
refs/heads/stable: 60f8f6bde9be62554a850c31c770357e7d3e576e
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375

branches/stable/src/compiletest/header.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@ pub fn is_test_ignored(config: &Config, testfile: &Path) -> bool {
170170
format!("ignore-{}",
171171
config.stage_id.split('-').next().unwrap())
172172
}
173+
fn ignore_env(config: &Config) -> String {
174+
format!("ignore-{}", util::get_env(&config.target).unwrap_or("<unknown>"))
175+
}
173176
fn ignore_gdb(config: &Config, line: &str) -> bool {
174177
if config.mode != common::DebugInfoGdb {
175178
return false;
@@ -231,6 +234,7 @@ pub fn is_test_ignored(config: &Config, testfile: &Path) -> bool {
231234
!parse_name_directive(ln, &ignore_target(config)) &&
232235
!parse_name_directive(ln, &ignore_architecture(config)) &&
233236
!parse_name_directive(ln, &ignore_stage(config)) &&
237+
!parse_name_directive(ln, &ignore_env(config)) &&
234238
!(config.mode == common::Pretty && parse_name_directive(ln, "ignore-pretty")) &&
235239
!(config.target != config.host && parse_name_directive(ln, "ignore-cross-compile")) &&
236240
!ignore_gdb(config, ln) &&

branches/stable/src/compiletest/util.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ pub fn get_arch(triple: &str) -> &'static str {
6060
panic!("Cannot determine Architecture from triple");
6161
}
6262

63+
pub fn get_env(triple: &str) -> Option<&str> {
64+
triple.split('-').nth(3)
65+
}
66+
6367
pub fn make_new_path(path: &str) -> String {
6468
assert!(cfg!(windows));
6569
// Windows just uses PATH as the library search path, so we have to

0 commit comments

Comments
 (0)