Wed May 1 11:40:25 2024 UTC (19d)
Increase the estimate of disk space required for the test, as the old
estimate recently proved too optimistic on the amd64 testbed on b4.


(gson)
diff -r1.6 -r1.7 src/tests/lib/libc/stdio/t_intr.sh

cvs diff -r1.6 -r1.7 src/tests/lib/libc/stdio/t_intr.sh (expand / switch to unified diff)

--- src/tests/lib/libc/stdio/t_intr.sh 2021/10/31 11:36:26 1.6
+++ src/tests/lib/libc/stdio/t_intr.sh 2024/05/01 11:40:25 1.7
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: t_intr.sh,v 1.6 2021/10/31 11:36:26 gson Exp $ 1# $NetBSD: t_intr.sh,v 1.7 2024/05/01 11:40:25 gson Exp $
2# 2#
3# Copyright (c) 2021 The NetBSD Foundation, Inc. 3# Copyright (c) 2021 The NetBSD Foundation, Inc.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# This code is derived from software contributed to The NetBSD Foundation 6# This code is derived from software contributed to The NetBSD Foundation
7# by Christos Zoulas. 7# by Christos Zoulas.
8# 8#
9# Redistribution and use in source and binary forms, with or without 9# Redistribution and use in source and binary forms, with or without
10# modification, are permitted provided that the following conditions 10# modification, are permitted provided that the following conditions
11# are met: 11# are met:
12# 1. Redistributions of source code must retain the above copyright 12# 1. Redistributions of source code must retain the above copyright
13# notice, this list of conditions and the following disclaimer. 13# notice, this list of conditions and the following disclaimer.
14# 2. Redistributions in binary form must reproduce the above copyright 14# 2. Redistributions in binary form must reproduce the above copyright
@@ -27,27 +27,30 @@ @@ -27,27 +27,30 @@
27# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 27# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28# POSSIBILITY OF SUCH DAMAGE. 28# POSSIBILITY OF SUCH DAMAGE.
29# 29#
30 30
31DIR=$(atf_get_srcdir) 31DIR=$(atf_get_srcdir)
32MAX=10000000 32MAX=10000000
33LMAX=1000000 33LMAX=1000000
34BSIZE=128000 34BSIZE=128000
35SSIZE=256000 35SSIZE=256000
36TMOUT=20 36TMOUT=20
37 37
38h_test() { 38h_test() {
39 local avail=$( df -m . | awk '{if (int($4) > 0) print $4}' ) 39 local avail=$( df -m . | awk '{if (int($4) > 0) print $4}' )
40 local need=$(( 2 * $MAX * 8 / 1000000 )) 40 # The test data are stored in triplicate: numbers.in, numbers.out,
 41 # and a temporary "stdout" file created by ATF. Each line consists
 42 # of up to 7 digits and a newline for a total of 8 bytes.
 43 local need=$(( 3 * $MAX * 8 / 1000000 ))
41 if [ $avail -lt $need ]; then 44 if [ $avail -lt $need ]; then
42 atf_skip "not enough free space in working directory" 45 atf_skip "not enough free space in working directory"
43 fi 46 fi
44 47
45 "${DIR}/h_makenumbers" "$1" > numbers.in 48 "${DIR}/h_makenumbers" "$1" > numbers.in
46 "${DIR}/h_intr" \ 49 "${DIR}/h_intr" \
47 -p "$2" -a ${SSIZE} -b ${BSIZE} -t ${TMOUT} \ 50 -p "$2" -a ${SSIZE} -b ${BSIZE} -t ${TMOUT} \
48 -c "dd of=numbers.out msgfmt=quiet" numbers.in 51 -c "dd of=numbers.out msgfmt=quiet" numbers.in
49 atf_check -o "file:numbers.in" cat numbers.out 52 atf_check -o "file:numbers.in" cat numbers.out
50} 53}
51 54
52atf_test_case stdio_intr_ionbf 55atf_test_case stdio_intr_ionbf
53stdio_intr_ionbf_head() 56stdio_intr_ionbf_head()