_GLIBCXX_ASSERT lossage

Benjamin Kosnik bkoz@redhat.com
Tue Mar 2 19:55:00 GMT 2004


>>However, I haven't seen any test case that uses VERIFY, but requires
>>that _GLIBCXX_ASSERT should not be defined (I may have missed some
>>though) so this seems pretty bogus.
>>
>Yes, seems bogus to me too, now. Probably, time ago had an actual
>use... dunno...
>
>Let's wait a bit for other opinions: I vote in favor of simply removing
>the thing and unconditionally having VERIFY equivalent to an assert.

I'm ok with this.

VERIFY was done with the assert conditional so that the large testsuite
files of the day could be navigated simply by putting a gdb watch point
on the bool variable test. When it changed to false, that's were the
errors were located. Multiple errors could be examined without going to core.

Now, this is less useful, since the test cases are of a manageable size.

Hopefully this explains what was being attempted.

-benjamin







More information about the Libstdc++ mailing list