Test fixes
This commit is contained in:
parent
3ebe12eb3e
commit
0e6cd8b61a
5 changed files with 9 additions and 1 deletions
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty
|
||||||
|
|
||||||
#![feature(raw_identifiers)]
|
#![feature(raw_identifiers)]
|
||||||
|
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty
|
||||||
|
|
||||||
#![feature(raw_identifiers)]
|
#![feature(raw_identifiers)]
|
||||||
|
|
||||||
fn r#fn(r#match: u32) -> u32 {
|
fn r#fn(r#match: u32) -> u32 {
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty
|
||||||
|
|
||||||
#![feature(raw_identifiers)]
|
#![feature(raw_identifiers)]
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
|
|
|
@ -8,6 +8,8 @@
|
||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
// ignore-pretty
|
||||||
|
|
||||||
#![feature(decl_macro)]
|
#![feature(decl_macro)]
|
||||||
#![feature(raw_identifiers)]
|
#![feature(raw_identifiers)]
|
||||||
|
|
||||||
|
|
|
@ -2426,7 +2426,7 @@ impl<'test> TestCx<'test> {
|
||||||
// compiler flags set in the test cases:
|
// compiler flags set in the test cases:
|
||||||
cmd.env_remove("RUSTFLAGS");
|
cmd.env_remove("RUSTFLAGS");
|
||||||
|
|
||||||
if self.config.target.contains("msvc") {
|
if self.config.target.contains("msvc") && self.config.cc != "" {
|
||||||
// We need to pass a path to `lib.exe`, so assume that `cc` is `cl.exe`
|
// We need to pass a path to `lib.exe`, so assume that `cc` is `cl.exe`
|
||||||
// and that `lib.exe` lives next to it.
|
// and that `lib.exe` lives next to it.
|
||||||
let lib = Path::new(&self.config.cc).parent().unwrap().join("lib.exe");
|
let lib = Path::new(&self.config.cc).parent().unwrap().join("lib.exe");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue