From 0bef817c6837226dab922c64b45fd21ee20ba72c Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 4 Apr 2024 16:58:35 +0000 Subject: [PATCH] Better output handling (des at FreeBSD) --- tests/fs/tmpfs/t_times.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fs/tmpfs/t_times.sh b/tests/fs/tmpfs/t_times.sh index b928f82ebb47..d8f4a62ebc51 100644 --- a/tests/fs/tmpfs/t_times.sh +++ b/tests/fs/tmpfs/t_times.sh @@ -1,4 +1,4 @@ -# $NetBSD: t_times.sh,v 1.6 2021/06/17 00:03:05 riastradh Exp $ +# $NetBSD: t_times.sh,v 1.7 2024/04/04 16:58:35 christos Exp $ # # Copyright (c) 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -48,7 +48,7 @@ empty_body() { atf_fail "Incorrect mtime: ${ost_birthtime} != ${ost_mtime}" sleep 1 - atf_check -s eq:0 -o ignore -e empty cat a + atf_check -s eq:0 -o empty -e empty cat a eval $(stat -s a) || atf_fail "stat failed" [ ${st_atime} -gt ${ost_atime} ] || \ atf_fail "Incorrect atime: ${st_atime} <= ${ost_atime}" @@ -83,7 +83,7 @@ non_empty_body() { eval $(stat -s b | sed -e 's|st_|ost_|g') || atf_fail "stat failed" sleep 1 - atf_check -s eq:0 -o ignore -e empty cat b + atf_check -s eq:0 -o inline:"foo\n" -e empty cat b eval $(stat -s b) || atf_fail "stat failed" [ ${st_atime} -gt ${ost_atime} ] || \ atf_fail "Incorrect atime: ${st_atime} <= ${ost_atime}"