Module Name:    src
Committed By:   rillig
Date:           Sun Sep  5 22:14:49 UTC 2021

Modified Files:
        src/tests/lib/libc/stdio: t_intr.sh

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/stdio/t_intr.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/stdio/t_intr.sh
diff -u src/tests/lib/libc/stdio/t_intr.sh:1.2 src/tests/lib/libc/stdio/t_intr.sh:1.3
--- src/tests/lib/libc/stdio/t_intr.sh:1.2	Fri Jul  9 15:26:59 2021
+++ src/tests/lib/libc/stdio/t_intr.sh	Sun Sep  5 22:14:49 2021
@@ -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 @@ h_test() {
 	"${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

Reply via email to