projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d36411
)
Fixed build script env var test
author
Henrik Laxhuber
<henrik@laxhuber.com>
Mon, 23 Apr 2018 15:45:17 +0000
(17:45 +0200)
committer
Henrik Laxhuber
<henrik@laxhuber.com>
Mon, 23 Apr 2018 15:45:17 +0000
(17:45 +0200)
tests/testsuite/build_script.rs
patch
|
blob
|
history
diff --git
a/tests/testsuite/build_script.rs
b/tests/testsuite/build_script.rs
index 0b87ebb81fd1e395b19b39c6eefff8db7de1f4b5..68abf84228957000daa112fcf82623ab4e5cb56a 100644
(file)
--- a/
tests/testsuite/build_script.rs
+++ b/
tests/testsuite/build_script.rs
@@
-179,7
+179,7
@@
fn custom_build_env_vars() {
use std::env;
fn main() {
- assert_eq!(env::var("RUSTC_LINKER"), "/path/to/linker");
+ assert_eq!(env::var("RUSTC_LINKER")
.unwrap()
, "/path/to/linker");
}
"#)
.file("src/lib.rs", "")
@@
-188,7
+188,7
@@
fn custom_build_env_vars() {
// no crate type set => linker never called => build succeeds if and
// only if build.rs succeeds, despite linker binary not existing.
assert_that(
- p.cargo("build").arg("--target").arg(&target)
.arg("-v")
,
+ p.cargo("build").arg("--target").arg(&target),
execs().with_status(0),
);
}