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: use standard ATF tools for...
details: https://anonhg.NetBSD.org/src/rev/56891accee4d
branches: trunk
changeset: 1023402:56891accee4d
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Sep 05 22:34:07 2021 +0000
description:
tests/stdio: use standard ATF tools for verifying the test output
In case of a test failure, this outputs a diff between the actual and
expected files.
Even with the smaller buffer size LMAX, the fully buffered test fails.
It does so after printing numbers up to 12773, which together take 65532
bytes. The next number, 12774, would cross the 65536 boundary, but
instead of that number, 12710730 was written.
diffstat:
tests/lib/libc/stdio/t_intr.sh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1d38a8484298 -r 56891accee4d tests/lib/libc/stdio/t_intr.sh
--- a/tests/lib/libc/stdio/t_intr.sh Sun Sep 05 22:14:49 2021 +0000
+++ b/tests/lib/libc/stdio/t_intr.sh Sun Sep 05 22:34:07 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_intr.sh,v 1.3 2021/09/05 22:14:49 rillig Exp $
+# $NetBSD: t_intr.sh,v 1.4 2021/09/05 22:34:07 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
- atf_check "${DIR}/h_testnumbers" < numbers.out
+ atf_check -o "file:numbers.in" cat numbers.out
}
atf_test_case stdio_intr_ionbf
@@ -70,7 +70,7 @@
}
stdio_intr_iofbf_body()
{
- h_test ${MAX} IOFBF
+ h_test ${LMAX} IOFBF
}
atf_init_test_cases()
Home |
Main Index |
Thread Index |
Old Index