Module Name:    src
Committed By:   pooka
Date:           Sat Jun 12 13:15:01 UTC 2010

Modified Files:
        src/tests/util: t_sort.sh

Log Message:
Make the test work on an installation without sharesrc.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/util/t_sort.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/util/t_sort.sh
diff -u src/tests/util/t_sort.sh:1.1 src/tests/util/t_sort.sh:1.2
--- src/tests/util/t_sort.sh:1.1	Sat Jun  5 22:38:39 2010
+++ src/tests/util/t_sort.sh	Sat Jun 12 13:15:01 2010
@@ -1,4 +1,4 @@
-# $NetBSD: t_sort.sh,v 1.1 2010/06/05 22:38:39 dholland Exp $
+# $NetBSD: t_sort.sh,v 1.2 2010/06/12 13:15:01 pooka Exp $
 #
 # Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -28,9 +28,6 @@
 # the implementation of "sort" to test
 : ${TEST_SORT:="sort"}
 
-# a file large enough that sort makes temporary files
-WORDS=/usr/share/dict/words
-
 
 atf_test_case basic
 basic_head()
@@ -177,7 +174,8 @@
 	# old behavior: sort: ftmp: mkstemp("-k1.1"): No such file or directory
 	echo "----- test: sort -T + $WORDS -----"
 	mkdir ./+
-	$TEST_SORT -T + $WORDS > /dev/null || atf_fail "program failed"
+	yes | sed 200000q | $TEST_SORT -T + > /dev/null \
+	    || atf_fail "program failed"
 	rm -rf ./+
 }
 

Reply via email to