Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit f1a9fd4

Browse files
committed
[lucet-runtime-tests] expect SIGSEGV on FreeBSD like on Linux
1 parent 2d20175 commit f1a9fd4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lucet-runtime/lucet-runtime-tests/src/guest_fault.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ macro_rules! guest_fault_tests {
194194
static ref RECOVERABLE_PTR_LOCK: Mutex<()> = Mutex::new(());
195195
}
196196

197-
#[cfg(target_os = "linux")]
197+
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
198198
const INVALID_PERMISSION_FAULT: libc::c_int = SIGSEGV;
199-
#[cfg(not(target_os = "linux"))]
199+
#[cfg(not(any(target_os = "linux", target_os = "freebsd")))]
200200
const INVALID_PERMISSION_FAULT: libc::c_int = SIGBUS;
201201

202-
#[cfg(target_os = "linux")]
202+
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
203203
const INVALID_PERMISSION_SIGNAL: Signal = Signal::SIGSEGV;
204-
#[cfg(not(target_os = "linux"))]
204+
#[cfg(not(any(target_os = "linux", target_os = "freebsd")))]
205205
const INVALID_PERMISSION_SIGNAL: Signal = Signal::SIGBUS;
206206

207207
unsafe fn recoverable_ptr_setup() {

0 commit comments

Comments
 (0)