Skip to content

Commit d57326e

Browse files
committed
Add a missing require_capability! to a test
1 parent d970e8e commit d57326e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/sys/test_ptrace.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ fn test_ptrace_syscall() {
128128
use nix::unistd::getpid;
129129
use nix::unistd::ForkResult::*;
130130

131+
require_capability!(CAP_SYS_PTRACE);
132+
131133
let _m = crate::FORK_MTX.lock().expect("Mutex got poisoned by another test");
132134

133135
match fork().expect("Error: Fork Failed") {

0 commit comments

Comments
 (0)