diff options
author | Anton Lindqvist <anton@cvs.openbsd.org> | 2022-09-04 10:10:21 +0000 |
---|---|---|
committer | Anton Lindqvist <anton@cvs.openbsd.org> | 2022-09-04 10:10:21 +0000 |
commit | c800265462dcd78dc227d93e115383aec860c3a6 (patch) | |
tree | 63ff870dfb44916e449b4aeb4be1fdd05a03106b /regress | |
parent | 01b1e22568622f9baf1ab9998cb97f2ee46008ff (diff) |
Make unveil tests less chatty when things work as expected.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/sys/kern/unveil/syscalls.c | 6 |
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; |