Skip to content

Commit 313dac0

Browse files
authored
test: grab the SIGNAL_MTX lock in test_sigaction (#2381)
1 parent 7ffbd3c commit 313dac0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/sys/test_signal.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ fn test_from_and_into_iterator() {
283283
#[test]
284284
#[cfg(not(target_os = "redox"))]
285285
fn test_sigaction() {
286+
let _m = crate::SIGNAL_MTX.lock();
286287
thread::spawn(|| {
287288
extern "C" fn test_sigaction_handler(_: libc::c_int) {}
288289
extern "C" fn test_sigaction_action(

0 commit comments

Comments
 (0)