[patch] Some testsuite cleanup
Jonathan Wakely
jwakely@redhat.com
Sun Jul 31 19:22:00 GMT 2016
On 28/07/16 22:06 +0100, Jonathan Wakely wrote:
>The dg-prune-output directives in these tests are needed to prune some
>additional errors that are only issued in C++98 mode, but the line
>numbers had got out of date. I've replaced the hardcoded numbers with
>strings that will stay valid.
>
> Fix DR 438 container tests to pass in C++98 mode
> * testsuite/23_containers/deque/requirements/dr438/assign_neg.cc:
> Adjust dg-prune-output pattern for error in C++98 mode.
> * testsuite/23_containers/deque/requirements/dr438/
> constructor_1_neg.cc: Likewise.
> * testsuite/23_containers/deque/requirements/dr438/
> constructor_2_neg.cc: Likewise.
> * testsuite/23_containers/deque/requirements/dr438/insert_neg.cc:
> Likewise.
> * testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
> Likewise.
> * testsuite/23_containers/list/requirements/dr438/
> constructor_1_neg.cc: Likewise.
> * testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
> Likewise.
> * testsuite/23_containers/vector/requirements/dr438/assign_neg.cc:
> Likewise.
> * testsuite/23_containers/vector/requirements/dr438/
> constructor_1_neg.cc: Likewise.
> * testsuite/23_containers/vector/requirements/dr438/
> constructor_2_neg.cc: Likewise.
> * testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:
> Likewise.
I missed one test in the change above. For that test the extra error
in C++98 mode comes from location 1698:29 which doesn't match the 1682
lineno in the test, but instead matches the dg-error on line 29 of the
file. That means it fails if it's run with
--target_board=unix/-fno-show-column/-std=gnu++98
(I'm getting really annoyed with line numbers matching columns!)
Tested x86_64-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 921 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160731/12826685/attachment.bin>
More information about the Libstdc++
mailing list