summaryrefslogtreecommitdiff
path: root/test/sys
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2019-11-30 22:25:06 -0700
committerAlan Somers <asomers@gmail.com>2019-12-01 09:01:28 -0700
commit5bfe6a1c76539a8dec49ffe5da8b23c4afc7e53d (patch)
treeac154f4bb4afdbafef01415bc562797e27b4124f /test/sys
parentf3bf1df774a6cb89cf04dced385ec073908508b0 (diff)
downloadnix-5bfe6a1c76539a8dec49ffe5da8b23c4afc7e53d.zip
Fix some race conditions in the integration tests
Diffstat (limited to 'test/sys')
-rw-r--r--test/sys/test_signal.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/sys/test_signal.rs b/test/sys/test_signal.rs
index 11875750..4cb394cc 100644
--- a/test/sys/test_signal.rs
+++ b/test/sys/test_signal.rs
@@ -18,6 +18,8 @@ fn test_killpg_none() {
#[test]
fn test_old_sigaction_flags() {
+ let _m = ::SIGNAL_MTX.lock().expect("Mutex got poisoned by another test");
+
extern "C" fn handler(_: ::libc::c_int) {}
let act = SigAction::new(
SigHandler::Handler(handler),