diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-03-06 09:16:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 09:16:50 -0500 |
commit | ff4b03f233e19ec607a9c88dc1d71016aeaeed4b (patch) | |
tree | 9b2431c7748630ed393f0ba2c082c18c9f160e3a /runtime/ops/process.rs | |
parent | eea742ec6aee458ba4ffd39e2284c1c03a4cc9f4 (diff) |
chore(tests): ability to capture stdout and stderr separately (#18035)
This is to allow making assertions on stdout and stderr separately.
Diffstat (limited to 'runtime/ops/process.rs')
-rw-r--r-- | runtime/ops/process.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/ops/process.rs b/runtime/ops/process.rs index ad14ef2e4..20db96af9 100644 --- a/runtime/ops/process.rs +++ b/runtime/ops/process.rs @@ -1,7 +1,6 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. use super::check_unstable; -use super::signal; use crate::permissions::PermissionsContainer; use deno_core::error::AnyError; use deno_core::op; @@ -565,7 +564,7 @@ mod deprecated { #[cfg(unix)] pub fn kill(pid: i32, signal: &str) -> Result<(), AnyError> { - let signo = super::signal::signal_str_to_int(signal)?; + let signo = super::super::signal::signal_str_to_int(signal)?; use nix::sys::signal::kill as unix_kill; use nix::sys::signal::Signal; use nix::unistd::Pid; @@ -593,8 +592,8 @@ mod deprecated { } else if pid <= 0 { Err(type_error("Invalid pid")) } else { - // SAFETY: winapi call let handle = + // SAFETY: winapi call unsafe { OpenProcess(PROCESS_TERMINATE, FALSE, pid as DWORD) }; if handle.is_null() { |