Skip to content

Commit 3079bb0

Browse files
committed
reduce import diff and always print stdout in tests
1 parent c8c61a2 commit 3079bb0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cc-test/build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
use std::env;
2+
use std::fs;
13
use std::path::{Path, PathBuf};
24
use std::process::Command;
3-
use std::{env, fs};
45

56
fn main() {
67
// if we are being executed from a `fork_run_action` call (i.e. this is a

cc-test/tests/output.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,7 @@ fn load_output(action: &str) -> (String, String) {
3838
let action_dir = PathBuf::from(env!("OUT_DIR")).join(action);
3939
let stdout = fs::read_to_string(action_dir.join("stdout")).unwrap();
4040
let stderr = fs::read_to_string(action_dir.join("stderr")).unwrap();
41+
println!("compile stdout: {:?}", action, stdout);
42+
println!("compile stderr: {:?}", action, stderr);
4143
(stdout, stderr)
4244
}

0 commit comments

Comments
 (0)