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: Testsuite failures with _GLIBCXX_DEBUG


On Wed, Jun 16, 2004 at 04:20:32PM -0500, Benjamin Kosnik wrote:

> 
> >I spent last night looking into 10 testsuite FAILs that occur in debug
> >mode, on both 3.4 and mainline. These FAILs are caused by three problems,
> >two of which I've reported as libstdc++/16020 and libstdc++/16021.
> 
> 10 FAILs is not so bad, but more than I remember when I did 3.4.0
> release testing.
> 
> Thanks so much for doing this. I'm a bit backed up right now but will
> get to this at some point.

Hi Benjamin,
I'm offline at the moment (moved house and have no phoneline yet) but
I did analyse another testsuite failure, so thought I'd share my
findings to save anyone doing it again.

Some enc_filebuf tests fail in debug mode if you have PCH enabled, since
the precompiled stdc++.h file can't be used (because _GLIBCXX_DEBUG
defined in the program but not in the PCH) and so <locale> is not
included before <ext/enc_filebuf> and _GLIBCXX_USE___ENC_TRAITS is not
defined, until <testsuite_hooks.h> gets included, so the first #ifdef is
false and the second is true, and the enc_filebuf type is used when not
defined (I think this is ext/enc_filebuf/{char,wchar_t}/13189.cc)

Hope that makes sense, I'm rushing to write this before going on
holiday.  Offline again for a week now, take care ...

jon

-- 
"When angry, count four; when very angry, swear."
	- Mark Twain


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