[testsuite] gcov.exp: include flags in test summary lines
Janis Johnson
janis_johnson@mentor.com
Fri Jun 15 18:10:00 GMT 2012
GCOV tests for C++ are run for both std=gnu++98 and std=gnu++11. Those
options are not reported by GCOV-specific lines in the test summary,
leading to non-unique lines. This patch modifies the GCOV test support
to use a testname that includes the extra flags used for a set of tests
and also modifies the format of summary lines to better incorporate that
information. For example, these lines:
PASS: gcc.misc-tests/gcov-1.c:17 line count
PASS: gcc.misc-tests/gcov-1.c gcov
PASS: g++.dg/gcov/gcov-1.C:279 line count
PASS: g++.dg/gcov/gcov-1.C gcov
are now:
PASS: gcc.misc-tests/gcov-1.c count for line 17
PASS: gcc.misc-tests/gcov-1.c gcov
PASS: g++.dg/gcov/gcov-1.C -std=gnu++98 count for line 279
PASS: g++.dg/gcov/gcov-1.C -std=gnu++98 gcov
PASS: g++.dg/gcov/gcov-1.C -std=gnu++11 count for line 279
PASS: g++.dg/gcov/gcov-1.C -std=gnu++11 gcov
Tested on i686-pc-linux-gnu and arm-eabi for gcc and g++ GCOV tests.
OK for mainline?
Janis
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-20120615-3
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120615/aea84cb0/attachment.ksh>
More information about the Gcc-patches
mailing list