diff options
author | Stef Walter <stefw@gnome.org> | 2012-03-27 12:14:56 +0200 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2012-03-27 12:14:56 +0200 |
commit | af8d28014f97ab0d9e4d00961e72aefd7adb470b (patch) | |
tree | 96b476f934489f745625731d2b1ba76a6826f517 /tests | |
parent | f40f63c2b608a399df431df366bf681e6b2bb20e (diff) |
Fix broken hashmap behavior
* 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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hash-test.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/hash-test.c b/tests/hash-test.c index 876088b..530c67c 100644 --- a/tests/hash-test.c +++ b/tests/hash-test.c @@ -171,8 +171,6 @@ test_set_clear (CuTest *tc) map = _p11_hash_create (_p11_hash_direct_hash, _p11_hash_direct_equal, NULL, NULL); - fprintf (stderr, "%p setting\n", value); - if (!_p11_hash_set (map, key, value)) CuFail (tc, "should not be reached"); |