projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4628011
)
Moved RUSTC_LINKER test into its own fn
author
Henrik Laxhuber
<henrik@laxhuber.com>
Tue, 24 Apr 2018 06:18:33 +0000
(08:18 +0200)
committer
Henrik Laxhuber
<henrik@laxhuber.com>
Tue, 24 Apr 2018 06:18:33 +0000
(08:18 +0200)
tests/testsuite/build_script.rs
patch
|
blob
|
history
diff --git
a/tests/testsuite/build_script.rs
b/tests/testsuite/build_script.rs
index bb44cd8345c837385373c5131bef40b08a58059b..eb444f25450416f75f46572512aa4a967b166ea7 100644
(file)
--- a/
tests/testsuite/build_script.rs
+++ b/
tests/testsuite/build_script.rs
@@
-151,8
+151,11
@@
fn custom_build_env_vars() {
p.cargo("build").arg("--features").arg("bar_feat"),
execs().with_status(0),
);
+}
+
- // Test passing linker from .cargo/config to env var
+#[test]
+fn custom_build_env_var_rustc_linker() {
if cross_compile::disabled() { return; }
let target = cross_compile::alternate();
let p = project("foo")
@@
-181,7
+184,8
@@
fn custom_build_env_vars() {
fn main() {
assert!(env::var("RUSTC_LINKER").unwrap().ends_with("/path/to/linker"));
}
- "#)
+ "#
+ )
.file("src/lib.rs", "")
.build();