nanahan icon indicating copy to clipboard operation
nanahan copied to clipboard

A random test case fails

Open Cryolite opened this issue 11 years ago • 0 comments

Here is a random test case for nanahan::Map https://gist.github.com/3269831, which cannot be completed currently. Could anyone have a look?

The test case depends on libstdc++, especially __gnu_cxx::throw_allocator_random defined in a GNU extension header <ext/throw_allocator.h> (See http://gcc.gnu.org/onlinedocs/libstdc++/manual/memory.html and http://gcc.gnu.org/onlinedocs/gcc-4.7.1/libstdc++/api/a00075.html for details), so it works only with GCC.

Note that the test case can be completed when using boost::unordered_map in place of nanahan::Map, even with valgrind --leak-check=full and libstdc++ debug mode. You can easily confirm it by changing the line #if 1 into #if 0 at the very beginning of the code.

Cryolite avatar Aug 06 '12 04:08 Cryolite