Mercurial > hg > CbC > CbC_gcc
diff contrib/dg-extract-results.sh @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 58ad6c70ea60 |
children | f6334be47118 |
line wrap: on
line diff
--- a/contrib/dg-extract-results.sh Fri Feb 12 23:41:23 2010 +0900 +++ b/contrib/dg-extract-results.sh Mon May 24 12:47:05 2010 +0900 @@ -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 @@ 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 @@ 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 (failcnt != 0) printf ("# of unexpected failures\t%d\n", failcnt) if (xpasscnt != 0) printf ("# of unexpected successes\t%d\n", xpasscnt) - if (failcnt != 0) printf ("# of unexpected failures\t%d\n", failcnt) 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 @@ # 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