]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 5 Sep 2000 05:58:12 +0000 (05:58 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 5 Sep 2000 05:58:12 +0000 (05:58 +0000)
* iconvdata/run-iconv-test.sh: Add code to immediate stop the
script when ^C is hit.

ChangeLog
iconvdata/run-iconv-test.sh

index 79395dcc0739694c5b541e23dd0c6790b8899708..f4dfe248be7c45129798c6c139482b286e6c0025 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-09-04  Ulrich Drepper  <drepper@redhat.com>
 
+       * iconvdata/run-iconv-test.sh: Add code to immediate stop the
+       script when ^C is hit.
+
        * locale/programs/localedef.c (construct_output_path): Correct
        computation of endp after asprintf.
        * locale/programs/locfile.c (write_locale_data): Don't add extra
index f8b29921ebde8148565257bcd36cc65a840089e9..a16f667c67ae2c8b5b7729b3193e4144b7e99ab2 100755 (executable)
@@ -1,6 +1,6 @@
 #! /bin/sh -f
 # Run available iconv(1) tests.
-# Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+# Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 # Contributed by Ulrich Drepper <drepper@cygnus.com>, 1998.
 #
@@ -59,7 +59,11 @@ while read from to subset targets; do
   for t in $targets; do
     echo $ac_n "test data: $from -> $t $ac_c"
     $PROG -f $from -t $t testdata/$from > $temp1 ||
-      { echo "FAILED"; failed=1; continue; }
+      { if test $? -gt 128; then exit 1; fi
+       echo "FAILED"
+       failed=1
+       continue
+      }
     echo $ac_n "OK$ac_c"
     if test -s testdata/$from..$t; then
       cmp $temp1 testdata/$from..$t > /dev/null 2>&1 ||
@@ -68,7 +72,11 @@ while read from to subset targets; do
     fi
     echo $ac_n " -> $from $ac_c"
     $PROG -f $t -t $to -o $temp2 $temp1 ||
-      { echo "FAILED"; failed=1; continue; }
+      { if test $? -gt 128; then exit 1; fi
+       echo "FAILED"
+       failed=1
+       continue
+      }
     echo $ac_n "OK$ac_c"
     test -s $temp1 && cmp testdata/$from $temp2 > /dev/null 2>&1 ||
       { echo "/FAILED"; failed=1; continue; }
@@ -82,8 +90,11 @@ while read from to subset targets; do
       echo $ac_n "   suntzu: $from -> $t -> $to $ac_c"
       $PROG -f $from -t $t testdata/suntzus |
       $PROG -f $t -t $to > $temp1 ||
-       { echo "FAILED"; failed=1;
-         continue; }
+       { if test $? -gt 128; then exit 1; fi
+         echo "FAILED"
+         failed=1
+         continue
+       }
       echo $ac_n "OK$ac_c"
       cmp testdata/suntzus $temp1 ||
        { echo "/FAILED";
@@ -92,8 +103,11 @@ while read from to subset targets; do
       echo $ac_n "   suntzu: $from -> ASCII -> $to $ac_c"
       $PROG -f ASCII -t $to testdata/suntzus |
       $PROG -f $to -t ASCII > $temp1 ||
-        { echo "FAILED";
-         failed=1; continue; }
+        { if test $? -gt 128; then exit 1; fi
+         echo "FAILED"
+         failed=1
+         continue
+       }
       echo $ac_n "OK$ac_c"
       cmp testdata/suntzus $temp1 ||
         { echo "/FAILED";
This page took 0.05703 seconds and 5 git commands to generate.