Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/util Make the test work on an installation without sha...



details:   https://anonhg.NetBSD.org/src/rev/3cde883e8e6e
branches:  trunk
changeset: 755612:3cde883e8e6e
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Jun 12 13:15:01 2010 +0000

description:
Make the test work on an installation without sharesrc.

diffstat:

 tests/util/t_sort.sh |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r 412c050cd4b3 -r 3cde883e8e6e tests/util/t_sort.sh
--- a/tests/util/t_sort.sh      Sat Jun 12 08:12:03 2010 +0000
+++ b/tests/util/t_sort.sh      Sat Jun 12 13:15:01 2010 +0000
@@ -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 ./+
 }
 



Home | Main Index | Thread Index | Old Index