From 3079bb00fb31abb4ed5f932228cb73fa52cb5498 Mon Sep 17 00:00:00 2001 From: Simon Berger Date: Tue, 16 Jan 2024 20:01:01 +0100 Subject: [PATCH] reduce import diff and always print stdout in tests --- cc-test/build.rs | 3 ++- cc-test/tests/output.rs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cc-test/build.rs b/cc-test/build.rs index 7710b9ffe..f1f9f1b8e 100644 --- a/cc-test/build.rs +++ b/cc-test/build.rs @@ -1,6 +1,7 @@ +use std::env; +use std::fs; use std::path::{Path, PathBuf}; use std::process::Command; -use std::{env, fs}; fn main() { // if we are being executed from a `fork_run_action` call (i.e. this is a diff --git a/cc-test/tests/output.rs b/cc-test/tests/output.rs index a4c8e2255..3f9b2e9ed 100644 --- a/cc-test/tests/output.rs +++ b/cc-test/tests/output.rs @@ -38,5 +38,7 @@ fn load_output(action: &str) -> (String, String) { let action_dir = PathBuf::from(env!("OUT_DIR")).join(action); let stdout = fs::read_to_string(action_dir.join("stdout")).unwrap(); let stderr = fs::read_to_string(action_dir.join("stderr")).unwrap(); + println!("compile stdout: {:?}", action, stdout); + println!("compile stderr: {:?}", action, stderr); (stdout, stderr) }