change so that test 35 print warning about missing -g just once

s/not present/not supported/
This commit is contained in:
jdolecek 2001-01-11 22:18:38 +00:00
parent 50b80dfd9f
commit 9d7f88dae6

View File

@ -1,6 +1,6 @@
#! /bin/sh
# @(#)stests 8.1 (Berkeley) 6/6/93
# $NetBSD: stests,v 1.3 2001/01/11 22:10:27 jdolecek Exp $
# $NetBSD: stests,v 1.4 2001/01/11 22:18:38 jdolecek Exp $
# This code is derived from software contributed to Berkeley by
# Peter McIlroy.
@ -121,7 +121,7 @@ linecount() {
# print info about skipped test
not_tested() {
echo "$TEST$X skipped - flag '$1' not present"
echo "$TEST$X skipped - flag '$1' not supported"
}
rm -f out
@ -856,10 +856,14 @@ x
0.10
!
$g xsort A -g
$g sort -gu in >xx && $g sort -c -gu xx || echo ${TEST}B failed
$g linecount C xx 3
if [ -z "$g" ]; then
xsort A -g
sort -gu in >xx && $g sort -c -gu xx || echo ${TEST}B failed
linecount C xx 3
else
# -g not supported
not_tested '-g'
fi
#---------------------------------------------------------------
TEST=36; echo $TEST # -s