kumagi / nanahan

低レイテンシ志向のデータコンテナ群を作ろうと思います
Other
28 stars 4 forks source link

A random test case fails #7

Open Cryolite opened 12 years ago

Cryolite commented 12 years ago

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.