[PATCH] libstdc++-v3: add more verifications to testsuite

Paolo Carlini paolo.carlini@oracle.com
Sat Jun 26 03:46:00 GMT 2010


On 06/26/2010 12:50 AM, Kees Cook wrote:
> Hello,
>
> Here is a patch that adds additional tests to the libstdc++-v3 test suite.
> Ubuntu builds packages with -D_FORTIFY_SOURCE=2, so running the suite
> shows a few minor warnings.  This cleans them up by providing additional
> sanity checks around freopen, fgets, and fwrite, as already done in other
> places in the testsuite.
>   
Ok... but change the tests to simply:
   
    VERIFY( std::freopen("ios_base_members_static-1.txt", "w", stderr) );

and so on, because we are trying to minimize the uses of C-style NULLs.

Paolo.



More information about the Gcc-patches mailing list