From: anton Date: Sun, 4 Sep 2022 10:10:20 +0000 (+0000) Subject: Make unveil tests less chatty when things work as expected. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2cc8551a3b7495626f6531e87a9f247b9f943dc0;p=openbsd Make unveil tests less chatty when things work as expected. --- 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 @@ -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;