summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2022-12-06 09:37:21 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2022-12-06 09:37:21 +0000
commit295820957e3232168b34946cdeb15fa97666aed4 (patch)
treeab7ddd77890afbba2f22cb33c10d033a8e372134 /regress
parent4fa4a6c3dba7d65a95dd8fcecaf86853687553d5 (diff)
Correct previous, must exit 0 to signal failure.
Diffstat (limited to 'regress')
-rw-r--r--regress/sys/uvm/wx_syscall/wx_syscall.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/uvm/wx_syscall/wx_syscall.c b/regress/sys/uvm/wx_syscall/wx_syscall.c
index b272f2c3e0c..c4531a42c50 100644
--- a/regress/sys/uvm/wx_syscall/wx_syscall.c
+++ b/regress/sys/uvm/wx_syscall/wx_syscall.c
@@ -20,10 +20,10 @@ main()
if (errno == ENOTSUP) {
printf("mprotect -> ENOTSUP? Please run from "
"wxallowed filesystem\n");
- exit(0);
} else {
- err(1, "mprotect");
+ warn("mprotect");
}
+ exit(0);
}
flock(0, 0);