summaryrefslogtreecommitdiff
path: root/tests/hash-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Move debug and library code into the common/ subdirectoryStef Walter2013-01-091-465/+0
| | | | | | | | | | | Start using p11_ as our internal prefix rather than _p11_. We explicitly export p11_kit_ so this is fine as far as visibility. Move the threading, mutex, and module compat, dict, and array code into the common directory too. Take this opportunity to clean up a bit of internal API as well, since so many lines are being touched internally.
* Guarantee that the key is freed when replacedStef Walter2013-01-071-33/+91
| | | | | | | | | * When setting a key in a map that already exists, then free the old key and replace with the new one. * Fix related bug where key was not properly allocated * Add tests for this https://bugs.freedesktop.org/show_bug.cgi?id=59087
* Fix broken hashmap behaviorStef Walter2012-03-271-2/+0
| | | | | | | * We were relying on undefined gcc behavior related to the & operator. * This would show up as a test failure when running with -O2 on certain GCC versions, as well as failure on clang 3.1
* Compile CuTest.c separately.Andreas Metzler2011-12-231-2/+0
| | | | | Use regular compile and link instead of having #include "CuTest.c" in every test. Works around gcc optimization issue.
* Reorganize tests, work around optimization bugStef Walter2011-12-201-23/+22
| | | | | | | | * Encountered a gcc optimization bug in gcc 4.6.1 which seems to be reordering related function calls eroneously. This bug seems to be fixed in 4.6.2. * Reorganize test code to get around this bug building on mingw, and ubuntu 11.10, both of which use gcc 4.6.1
* Rename non-static functions to have a _p11_xxx prefix.Stef Walter2011-10-241-81/+81
| | | | | | | * Work around issues with brain-dead linkers not respecting the libtool -export-symbol-regex argument https://bugs.freedesktop.org/show_bug.cgi?id=42020
* Reimplement and remove apache licensed bits of code.Stef Walter2011-07-271-79/+79
| | | | | | | | | | * Reimplement the various bits of the hash table that were still based on the apache apr code. Use different algorithms for hashing, lookup and other stuff. * Use this as an opportunity to cleanup that code and make it more legible. https://bugzilla.redhat.com/show_bug.cgi?id=725905
* Fix some hash leaks and bugs.Stef Walter2011-06-071-2/+37
|
* Add testing and start testing hash table functionality.Stef Walter2011-01-261-0/+377