diff --git a/hash/test/link_ext_test.cpp b/hash/test/link_ext_test.cpp index f0fd492..d113aa8 100644 --- a/hash/test/link_ext_test.cpp +++ b/hash/test/link_ext_test.cpp @@ -6,12 +6,13 @@ #define HASH_NAMESPACE boost #include +#include #include int f(std::size_t hash1, int* x1) { // Check that HASH_NAMESPACE::hash works in both files. HASH_NAMESPACE::hash ptr_hasher; - assert(hash1 == ptr_hasher(x1)); + BOOST_TEST(hash1 == ptr_hasher(x1)); // Check that std::vector is avaiable in this file. std::vector x; diff --git a/hash/test/link_no_ext_test.cpp b/hash/test/link_no_ext_test.cpp index d4bbba4..10583b3 100644 --- a/hash/test/link_no_ext_test.cpp +++ b/hash/test/link_no_ext_test.cpp @@ -7,11 +7,13 @@ #define HASH_NAMESPACE boost #define BOOST_HASH_NO_EXTENSIONS #include +#include extern int f(std::size_t, int*); int main() { HASH_NAMESPACE::hash ptr_hasher; int x = 55; - return f(ptr_hasher(&x), &x); + BOOST_TEST(!f(ptr_hasher(&x), &x)); + return boost::report_errors(); }