Fix build scripts warnings.

This commit is contained in:
Simon Sapin 2015-03-18 21:53:48 +01:00
parent 1e858ecbc6
commit fef279a8f5
3 changed files with 22 additions and 33 deletions

View file

@ -2,17 +2,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(io)]
use std::old_io::process::{Command, ProcessExit, StdioContainer};
use std::process::Command;
fn main() {
let result = Command::new("make")
assert!(Command::new("make")
.args(&["-f", "makefile.cargo"])
.stdout(StdioContainer::InheritFd(1))
.stderr(StdioContainer::InheritFd(2))
.status()
.unwrap();
assert_eq!(result, ProcessExit::ExitStatus(0));
.unwrap()
.success());
}