diff options
| author | rillig <rillig@NetBSD.org> | 2021-09-05 22:34:07 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2021-09-05 22:34:07 +0000 |
| commit | af00a6ebfc4f5d4c5a7e147ce9f1799e18dffca0 (patch) | |
| tree | afbf002476002f4dec1fcbc4851e3764dd59cd8e /tests/lib/libc | |
| parent | d8405de43ef00527108477beba5f7921f9983a32 (diff) | |
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 (limited to 'tests/lib/libc')
| -rw-r--r-- | tests/lib/libc/stdio/t_intr.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/libc/stdio/t_intr.sh b/tests/lib/libc/stdio/t_intr.sh index a9eaeffb6a9..1fe17694188 100644 --- a/tests/lib/libc/stdio/t_intr.sh +++ b/tests/lib/libc/stdio/t_intr.sh @@ -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 @@ h_test() { "${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_head() } stdio_intr_iofbf_body() { - h_test ${MAX} IOFBF + h_test ${LMAX} IOFBF } atf_init_test_cases() |
