Skip to content

Commit 181d8dd

Browse files
committed
test(signal): remove unnecessary syscall
The test issues a "forbidden" syscall, but the seccomp filters are not enabled, so it does nothing. I tried to replace it with SIGSYS to assert that the corresponding metric is emitted, but it crashed the test, so I'm just removing it. Signed-off-by: Riccardo Mancini <[email protected]>
1 parent 321b26a commit 181d8dd

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/vmm/src/signal_handler.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,6 @@ mod tests {
185185
let child = thread::spawn(move || {
186186
register_signal_handlers().unwrap();
187187

188-
// Call the forbidden `SYS_mkdirat`.
189-
unsafe { libc::syscall(libc::SYS_mkdirat, "/foo/bar\0") };
190-
191188
// Call SIGBUS signal handler.
192189
assert_eq!(METRICS.signals.sigbus.fetch(), 0);
193190
unsafe {

0 commit comments

Comments
 (0)