Skip to content

Commit

Permalink
Temporarily enable debug statements to troubleshoot windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davoclavo committed Jan 12, 2024
1 parent 727c38a commit 2d71beb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/signal_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ impl SignalHandler {
signals.iter().copied().for_each(|signal| {
let res = unsafe {
signal_hook::low_level::register(signal, move || {
println!("Enqueuing signal {signal:?}");
Self::instance().signals.push(signal);
})
};
Expand Down Expand Up @@ -65,6 +66,7 @@ impl SignalHandler {
fn wait_child(mut child: GroupChild) -> std::io::Result<(GroupChild, ExitStatus)> {
loop {
if let Some(signal) = Self::instance().signals.pop() {
println!("Popping signal {signal:?}");
let child_pid = child.id();
#[cfg(unix)]
if let Ok(pid) = i32::try_from(child_pid) {
Expand Down
2 changes: 1 addition & 1 deletion tests/signals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn signal_test(arguments: &[&str], justfile: &str, times: u64) {
let mut child = Command::new(executable_path("just"))
.current_dir(&tmp)
.args(arguments)
.stderr(Stdio::null())
// .stderr(Stdio::null())
.spawn()
.expect("just invocation failed");

Expand Down

0 comments on commit 2d71beb

Please sign in to comment.