aboutsummaryrefslogtreecommitdiff
path: root/tests/compiletest.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2019-02-15 23:39:28 +0000
committerGravatar bors[bot] <bors[bot]@users.noreply.github.com> 2019-02-15 23:39:28 +0000
commitc91b14bcd49f05ea40617dbd3166afa63234cb91 (patch)
tree1a7c65d4a68619966e4a133dd165de7a3ec64c6b /tests/compiletest.rs
parentfdba26525c4a190d0275dd3b5f3a154fa189a799 (diff)
parente5e54ee8f1b7afca614f642ee064a7f00a1f8548 (diff)
downloadrtic-c91b14bcd49f05ea40617dbd3166afa63234cb91.tar.gz
rtic-c91b14bcd49f05ea40617dbd3166afa63234cb91.tar.zst
rtic-c91b14bcd49f05ea40617dbd3166afa63234cb91.zip
Merge #151
151: make builds reproducible r=japaric a=japaric This is a rebased and augmented version of #132. With this PR both dev and release builds that do not use the owned-singleton stuff become reproducible. (I haven't really bothered to make owned-singleton reproducible since [lifo] is way more ergonomic than [alloc-singleton] and will eventually make its way into heapless). [lifo]: https://github.com/japaric/lifo [alloc-singleton]: https://crates.io/crates/alloc-singleton Thanks @hugwijst for doing the bulk of the work! closes #132 Co-authored-by: Hugo van der Wijst <hvanderwijst@tesla.com> Co-authored-by: Hugo van der Wijst <hugo@wij.st> Co-authored-by: Jorge Aparicio <jorge@japaric.io>
Diffstat (limited to 'tests/compiletest.rs')
-rw-r--r--tests/compiletest.rs22
1 files changed, 10 insertions, 12 deletions
diff --git a/tests/compiletest.rs b/tests/compiletest.rs
index acc89546..58702eec 100644
--- a/tests/compiletest.rs
+++ b/tests/compiletest.rs
@@ -38,18 +38,16 @@ fn cfail() {
let f = f.unwrap().path();
let name = f.file_stem().unwrap().to_str().unwrap();
- assert!(
- Command::new("rustc")
- .args(s.split_whitespace())
- .arg(f.display().to_string())
- .arg("-o")
- .arg(td.path().join(name).display().to_string())
- .arg("-C")
- .arg("linker=true")
- .status()
- .unwrap()
- .success()
- );
+ assert!(Command::new("rustc")
+ .args(s.split_whitespace())
+ .arg(f.display().to_string())
+ .arg("-o")
+ .arg(td.path().join(name).display().to_string())
+ .arg("-C")
+ .arg("linker=true")
+ .status()
+ .unwrap()
+ .success());
}
config.target_rustcflags = Some(s);