X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftest-exclude5.sh;h=cfe22287fa086b7ed1a773a80bdaabe79129b620;hb=032debd69f3b84239767c727598fb3237a3eeaca;hp=0d717886cb72c7f88f8950ccb6a4e3236d1c31f1;hpb=f28a2482feb7b5870dea9c7fb895622cdca5bd30;p=gnulib.git diff --git a/tests/test-exclude5.sh b/tests/test-exclude5.sh index 0d717886c..cfe22287f 100755 --- a/tests/test-exclude5.sh +++ b/tests/test-exclude5.sh @@ -1,6 +1,6 @@ #! /bin/sh # Test suite for exclude. -# Copyright (C) 2009 Free Software Foundation, Inc. +# Copyright (C) 2009-2012 Free Software Foundation, Inc. # This file is part of the GNUlib Library. # # This program is free software: you can redistribute it and/or modify @@ -16,26 +16,33 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -TMP=excltmp.$$ -LIST=flist.$$ -ERR=0 +. "${srcdir=.}/init.sh"; path_prepend_ . +fail=0 # Test FNM_LEADING_DIR -cat > $LIST < in < $TMP < expected < out || exit $? -rm -f $TMP $LIST -exit $ERR +# Find out how to remove carriage returns from output. Solaris /usr/ucb/tr +# does not understand '\r'. +case $(echo r | tr -d '\r') in '') cr='\015';; *) cr='\r';; esac + +# normalize output +LC_ALL=C tr -d "$cr" < out > k && mv k out + +compare expected out || fail=1 + +Exit $fail