From: Inokentiy Babushkin Date: Fri, 2 Dec 2016 15:00:58 +0000 (+0100) Subject: Fixed broken testcase for string-based form of rustflags config key. X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~11^2~95^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4eda23f7c0a6a3bfe585924b836de8ae0a99f8cf;p=cargo.git Fixed broken testcase for string-based form of rustflags config key. --- diff --git a/tests/rustflags.rs b/tests/rustflags.rs index 1cf9e96cd..f5117c313 100644 --- a/tests/rustflags.rs +++ b/tests/rustflags.rs @@ -997,11 +997,12 @@ fn target_rustflags_string_and_array_form1() { #[test] fn target_rustflags_string_and_array_form2() { let p1 = project("foo") - .file("Cargo.toml", &format!(r#" + .file("Cargo.toml", r#" [package] name = "foo" version = "0.0.1" - + "#) + .file(".cargo/config", &format!(r#" [target.{}] rustflags = ["--cfg", "foo"] "#, rustc_host())) @@ -1016,11 +1017,12 @@ fn target_rustflags_string_and_array_form2() { ")); let p2 = project("foo") - .file("Cargo.toml", &format!(r#" + .file("Cargo.toml", r#" [package] name = "foo" version = "0.0.1" - + "#) + .file(".cargo/config", &format!(r#" [target.{}] rustflags = "--cfg foo" "#, rustc_host()))