summaryrefslogtreecommitdiff
path: root/test/sys
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-12-01 17:03:19 +0000
committerGitHub <noreply@github.com>2019-12-01 17:03:19 +0000
commit50374c6ddc8660405cb1dd931810ad627f8a756b (patch)
treeeea05ddc7885a8e34d322503c5fdffa6a003ea2f /test/sys
parentfd5906790a45cf8f38922d26f772da9545035a41 (diff)
parent722fc77816fb21a70746f8f93941241ba18c6d42 (diff)
downloadnix-50374c6ddc8660405cb1dd931810ad627f8a756b.zip
Merge #1157
1157: Fix some race conditions in the integration tests r=asomers a=asomers Co-authored-by: Alan Somers <asomers@gmail.com>
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),