diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-12-12 14:31:38 +0100 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-12-13 09:37:23 +0100 |
commit | c84c2b8c92eb56b3b3793fc95265158f5eeb00db (patch) | |
tree | 38a2fd3c0b2c44f4d68bb7c7e41609207f701a10 /src/test/cuckoocache_tests.cpp | |
parent | 6d0a14703e288d72ff19d4d89defbc853233899f (diff) |
tests: Test for expected return values when calling functions returning a success code
Diffstat (limited to 'src/test/cuckoocache_tests.cpp')
-rw-r--r-- | src/test/cuckoocache_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/cuckoocache_tests.cpp b/src/test/cuckoocache_tests.cpp index dbceb9d2e0..ad6169ca61 100644 --- a/src/test/cuckoocache_tests.cpp +++ b/src/test/cuckoocache_tests.cpp @@ -158,7 +158,7 @@ static void test_cache_erase(size_t megabytes) set.insert(hashes_insert_copy[i]); /** Erase the first quarter */ for (uint32_t i = 0; i < (n_insert / 4); ++i) - set.contains(hashes[i], true); + BOOST_CHECK(set.contains(hashes[i], true)); /** Insert the second half */ for (uint32_t i = (n_insert / 2); i < n_insert; ++i) set.insert(hashes_insert_copy[i]); @@ -238,7 +238,7 @@ static void test_cache_erase_parallel(size_t megabytes) size_t start = ntodo*x; size_t end = ntodo*(x+1); for (uint32_t i = start; i < end; ++i) - set.contains(hashes[i], true); + BOOST_CHECK(set.contains(hashes[i], true)); }); /** Wait for all threads to finish |