From 2cc8551a3b7495626f6531e87a9f247b9f943dc0 Mon Sep 17 00:00:00 2001 From: anton Date: Sun, 4 Sep 2022 10:10:20 +0000 Subject: [PATCH] Make unveil tests less chatty when things work as expected. --- regress/sys/kern/unveil/syscalls.c | 6 ++---- 1 file 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 @@ -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; -- 2.20.1