Skip to content

Commit

Permalink
Try running all tests using cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-uk1 committed Jul 17, 2017
1 parent f4e329f commit c35030a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/librustc_back/target/wasm32_unknown_emscripten.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ pub fn target() -> Result<Target, String> {
vec!["-s".to_string(),
"BINARYEN=1".to_string(),
"-s".to_string(),
"BINARYEN_METHOD='native-wasm,interpret-binary'".to_string(),
"-s".to_string(),
"ERROR_ON_UNDEFINED_SYMBOLS=1".to_string()]);

let opts = TargetOptions {
Expand Down
1 change: 1 addition & 0 deletions src/tools/compiletest/src/procsrv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ pub fn run(lib_path: &str,
}
if let Some(cwd) = current_dir {
cmd.current_dir(cwd);
panic!("Backtrace");
}

let mut process = cmd.spawn()?;
Expand Down
7 changes: 2 additions & 5 deletions src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1546,11 +1546,8 @@ actual:\n\
logv(self.config, format!("executing {}", cmdline));
cmdline
};
let working_dir = if self.config.target.contains("emscripten") {
Some(self.output_base_name().parent().unwrap().to_str().unwrap().to_owned())
} else {
None
};
let working_dir =
Some(self.output_base_name().parent().unwrap().to_str().unwrap().to_owned());

let procsrv::Result {
out,
Expand Down

0 comments on commit c35030a

Please sign in to comment.