summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2022-09-04 10:10:21 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2022-09-04 10:10:21 +0000
commitc800265462dcd78dc227d93e115383aec860c3a6 (patch)
tree63ff870dfb44916e449b4aeb4be1fdd05a03106b /regress
parent01b1e22568622f9baf1ab9998cb97f2ee46008ff (diff)
Make unveil tests less chatty when things work as expected.
Diffstat (limited to 'regress')
-rw-r--r--regress/sys/kern/unveil/syscalls.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/regress/sys/kern/unveil/syscalls.c b/regress/sys/kern/unveil/syscalls.c
index 2546b9942b6..aab55912b23 100644
--- a/regress/sys/kern/unveil/syscalls.c
+++ b/regress/sys/kern/unveil/syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscalls.c,v 1.33 2022/09/01 14:23:25 benno Exp $ */
+/* $OpenBSD: syscalls.c,v 1.34 2022/09/04 10:10:20 anton Exp $ */
/*
* Copyright (c) 2017-2019 Bob Beck <beck@openbsd.org>
@@ -127,10 +127,8 @@ runcompare_internal(int (*func)(int), int fail_ok)
printf("[FAIL] unveil = %d, nonunveil = %d\n", unveil, nonunveil);
goto fail;
}
- if (unveil == nonunveil) {
- printf("[SUCCESS] unveil = %d, nonunveil = %d\n", unveil, nonunveil);
+ if (unveil == nonunveil)
return 0;
- }
printf("[FAIL] unveil = %d, nonunveil = %d\n", unveil, nonunveil);
fail:
return 1;