Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/stdio tests/stdio: wrap test command with atf...
details: https://anonhg.NetBSD.org/src/rev/1d38a8484298
branches: trunk
changeset: 1023401:1d38a8484298
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Sep 05 22:14:49 2021 +0000
description:
tests/stdio: wrap test command with atf_check
Previously, the test output was:
FAILED: Test case body returned a non-ok exit code, but this is
not allowed
In many cases, the test now succeeds, but in some cases it fails:
h_testnumbers: bad line "1287185
", expected 12774
h_testnumbers: bad line "6186889
", expected 6154889
diffstat:
tests/lib/libc/stdio/t_intr.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r a3c3826ab02d -r 1d38a8484298 tests/lib/libc/stdio/t_intr.sh
--- a/tests/lib/libc/stdio/t_intr.sh Sun Sep 05 21:57:57 2021 +0000
+++ b/tests/lib/libc/stdio/t_intr.sh Sun Sep 05 22:14:49 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_intr.sh,v 1.2 2021/07/09 15:26:59 christos Exp $
+# $NetBSD: t_intr.sh,v 1.3 2021/09/05 22:14:49 rillig Exp $
#
# Copyright (c) 2021 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -40,7 +40,7 @@
"${DIR}/h_intr" \
-p "$2" -a ${SSIZE} -b ${BSIZE} -t ${TMOUT} \
-c "dd of=numbers.out msgfmt=quiet" numbers.in
- "${DIR}/h_testnumbers" < numbers.out
+ atf_check "${DIR}/h_testnumbers" < numbers.out
}
atf_test_case stdio_intr_ionbf
Home |
Main Index |
Thread Index |
Old Index