gdb/testsuite/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 22 Mar 2010 20:38:58 +0000 (20:38 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 22 Mar 2010 20:38:58 +0000 (20:38 +0000)
* dg-extract-results.sh: Sync with GCC HEAD (import r155655, r157175
and r157645).

gdb/testsuite/ChangeLog
gdb/testsuite/dg-extract-results.sh

index b00eced3242be69040fb26f56fe7e0d256714465..7bfecc76a47202c32d3a84eb1bed2444508dc413 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dg-extract-results.sh: Sync with GCC HEAD (import r155655, r157175
+       and r157645).
+
 2010-03-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * gdb.dwarf2/dw2-empty-namespace.exp, gdb.dwarf2/dw2-empty-namespace.S:
index 518c19f6bee0a9e44f594c59c029763401d3a1bb..0ad85cb7aa28962e4131773209e25f6aaf82a42b 100755 (executable)
@@ -6,7 +6,7 @@
 # The resulting file can be used with test result comparison scripts for
 # results from tests that were run in parallel.  See usage() below.
 
-# Copyright (C) 2008, 2009 Free Software Foundation
+# Copyright (C) 2008, 2009, 2010 Free Software Foundation
 # Contributed by Janis Johnson <janis187@us.ibm.com>
 #
 # This file is part of GCC.
@@ -299,7 +299,7 @@ BEGIN {
     next
   }
 }
-/\===/ { curvar = ""; next }
+/^\t\t=== .* ===$/ { curvar = ""; next }
 /^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED|WARNING|ERROR|UNSUPPORTED|UNTESTED|KFAIL):/ {
   testname=\$2
   # Ugly hack for gfortran.dg/dg.exp
@@ -365,8 +365,8 @@ BEGIN {
 END {
   printf ("\t\t=== %s Summary for %s ===\n\n", tool, variant)
   if (passcnt != 0) printf ("# of expected passes\t\t%d\n", passcnt)
-  if (xpasscnt != 0) printf ("# of unexpected successes\t%d\n", xpasscnt)
   if (failcnt != 0) printf ("# of unexpected failures\t%d\n", failcnt)
+  if (xpasscnt != 0) printf ("# of unexpected successes\t%d\n", xpasscnt)
   if (xfailcnt != 0) printf ("# of expected failures\t\t%d\n", xfailcnt)
   if (untstcnt != 0) printf ("# of untested testcases\t\t%d\n", untstcnt)
   if (unrescnt != 0) printf ("# of unresolved testcases\t%d\n", unrescnt)
@@ -418,6 +418,6 @@ cat ${TMP}/var-* | $AWK -f $TOTAL_AWK
 # This is ugly, but if there's version output from the compiler under test
 # at the end of the file, we want it.  The other thing that might be there
 # is the final summary counts.
-tail -n 2 $FIRST_SUM | grep -q '^#' || tail -n 2 $FIRST_SUM
+tail -2 $FIRST_SUM | grep -q '^#' || tail -2 $FIRST_SUM
 
 exit 0
This page took 0.041828 seconds and 4 git commands to generate.