Small fixes to the test runner
@@ -33,16 +33,18 @@ fn examples() {
let err = unsafe {Stdio::from_raw_fd(fd)};
let out = unsafe {Stdio::from_raw_fd(fd)};
- success &= Command::new("rustc")
+ let compile_success = Command::new("rustc")
.args(&["--crate-type=lib", "-o", "liboldandnew.rlib"])
.arg(file)
- .env("RUST_LOG", "debug")
.env("RUST_BACKTRACE", "full")
.stdin(Stdio::null())
.status()
.unwrap()
.success();
+ success &= compile_success;
+
+ if compile_success {
let mut child = Command::new(exe_path.clone())
.args(&["--crate-type=lib",
"--extern",
@@ -75,6 +77,7 @@ fn examples() {
.success();
}
}
+ }
Command::new("rm")
.arg("liboldandnew.rlib")
