[patch] Some testsuite cleanup

Jonathan Wakely jwakely@redhat.com
Mon Aug 1 12:45:00 GMT 2016


On 28/07/16 22:06 +0100, Jonathan Wakely wrote:
>When I added _Temporary_object to vector recently I updated the
>construct/destroy counts in this test to match, but the changes only
>apply for C++11 and later. This makes the test pass whether run as
>C++98 or C++11 and later.
>
>   Fix std::vector test to pass in C++98 mode
>       * testsuite/23_containers/vector/check_construct_destroy.cc: Account
>       for different construct/destroy counts in C++98 mode.

The same change is needed for a __gnu_cxx::hash_set test, because that
container uses std::vector internally:

    Fix __gnu_cxx::hash_set test to pass in C++98 mode
    
        * testsuite/backward/hash_set/check_construct_destroy.cc: Account
        for different construct/destroy counts in C++98 mode.

Tested x86_64-linux, committed to trunk.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 3388 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160801/45f1450d/attachment.bin>


More information about the Libstdc++ mailing list