mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-01-06 01:58:33 -08:00
chore(coverage): Fix missing coverage from API integration tests
Three changes: 1. We neglected to forward stderr from Rosenpass subprocess two in the API setup integration test (driveby fix) 2. Added rudimentary signal handling for program termination to rosenpass, specifically for the coverage reporting 3. Apparently std::process::Child::kill() sends SIGKILL and not SIGTERM, so our nice new signal handler was never used. Switched to a rustix based child reaper. (2) and (3) where necessary because llvm-cov does not produce coverage when a subprocess terminates due to a default signal handler.
This commit is contained in:
11
Cargo.lock
generated
11
Cargo.lock
generated
@@ -1850,6 +1850,7 @@ dependencies = [
|
||||
"rustix",
|
||||
"serde",
|
||||
"serial_test",
|
||||
"signal-hook",
|
||||
"stacker",
|
||||
"static_assertions",
|
||||
"tempfile",
|
||||
@@ -2178,6 +2179,16 @@ version = "1.3.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
||||
|
||||
[[package]]
|
||||
name = "signal-hook"
|
||||
version = "0.3.17"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"signal-hook-registry",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "signal-hook-registry"
|
||||
version = "1.4.2"
|
||||
|
||||
Reference in New Issue
Block a user