This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: update debug checks


Hi,
> Hi
>
>     This is a patch to make debug checks recently introduced more
> consistent with the way tests are written. cont_traits.h and
> debug_cont_traits.h have all been removed.
>
>     I also use as announced the dg-require-debug-mode Deja GNU
> attribute to have the tests considered as not supported when debug
> mode is not activated. However I had to patch this attribute to make
> it works similarly to the other dg-require-* attributes. I have done
> it with the minimal modifications, it always try to compile a simple
> translation unit and check the result of the compilation.
Looks good for now.
> 2010-09-02  François Dumont <francois.cppdevs@free.fr>
>
>         * testsuite/lib/libstdc++.exp: Fix check_v3_target_debug_mode so
>         that it really detects when debug mode is activated
>         * testsuite/util/debug/construct_neg.h, insert_neg.h,
> assign_neg.h:
>         Removed and content moved...
>         * testsuite/util/debug/checks.h: ... here. Checks modified to
> take
>         the type of the container to test rather than an intermediate
> container
>         type traits helper.
>         * testsuite/23_containers/*/debug/cont_traits.h,
> debug_cont_traits.h:
>         Removed
>         * testsuite/23_containers/*/debug/assign?_neg.h,
> construct?_neg.h,
>         insert?_neg.h: Updated to use dg-require-debug-mode when
> necessary
>         and use new check functions.
Meanwhile I apply and test the patch locally, can you please prepare a
ChangeLog entry not using wildcards? The ChangeLogs are meant to be
quickly grepped and having that kind of entry makes everything more
difficult. Also, in general ChangeLog entries just say *what* is done,
not *why*, are very concise (explanations belong to comments in the code
or the text accompanying the patch in the mailing list, for example) and
use the infinite form, thus, for example, "Remove", not "Removed". Also,
if you change something belonging to a file you mention it between round
brackets - and then square brackets for macros, configury, etc, thus,
for example (modulo indentation and maybe improvements to the English):

    * testsuite/lib/libstdc++.exp ([check_v3_target_debug_mode]): Fix to
detect
    that detect debug mode is actually activated.

Thanks!

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]