diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-01-19 17:18:12 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-01-20 13:49:16 -0800 |
| commit | 72c3148bb34fe7365d33f78bd732385ab091f3cb (patch) | |
| tree | 5d71b9723dfe3c6b6e9bfe20737b0d7f59b321b7 /src/test | |
| parent | 5e8d7a4b7c2bfa3c278b93c0a81e151357f9b819 (diff) | |
| download | rust-72c3148bb34fe7365d33f78bd732385ab091f3cb.tar.gz rust-72c3148bb34fe7365d33f78bd732385ab091f3cb.zip | |
More test fixes from rollup
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/sse2.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/test/run-pass/sse2.rs b/src/test/run-pass/sse2.rs index 7e42698d496..8d88c17af79 100644 --- a/src/test/run-pass/sse2.rs +++ b/src/test/run-pass/sse2.rs @@ -13,10 +13,14 @@ use std::env; fn main() { - // Skip this tests on i586-unknown-linux-gnu where sse2 is disabled - let real_target = env::var("TARGET").unwrap(); - if real_target.contains("i586") { - return + match env::var("TARGET") { + Ok(s) => { + // Skip this tests on i586-unknown-linux-gnu where sse2 is disabled + if s.contains("i586") { + return + } + } + Err(_) => return, } if cfg!(any(target_arch = "x86", target_arch = "x86_64")) { assert!(cfg!(target_feature = "sse2"), |
