Small problem in testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-[1-4].cc
Pétur Runólfsson
peturr02@ru.is
Wed Jul 2 09:45:00 GMT 2003
> Hummmm. However, for some reason the original testcase gave problems on
> 64 bit platforms, like x86-64:
>
> 11305-1.exe:
> /usr/src/aj/cvs/gcc/libstdc++-v3/testsuite/27_io/basic_filebuf/overflow/wchar_t/11305-1.cc:38:
> void test01(): Assertion `n1 != (0xffffffffu)' failed.
> FAIL: 27_io/basic_filebuf/overflow/wchar_t/11305-1.cc execution test
>
> Any idea why?
One possible explanation is that the C library is failing to convert
these characters. They are also used in some tests in
22_locale/codecvt, are there any failures there?
> We can try restoring only the sputc() argument of your original testcase
> and see what happens...
Since wfilebuf::int_type is the same type as wint_t and
wfilebuf::traits_type::eof() == WEOF the testcase should fail (if it
doesn't, there is a bug somewhere else).
Petur
More information about the Libstdc++
mailing list