Signed-off-by: Angus Salkeld <asalkeld(a)redhat.com>
---
tests/check_hash.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tests/check_hash.c b/tests/check_hash.c
index 49384b4..18937aa 100644
--- a/tests/check_hash.c
+++ b/tests/check_hash.c
@@ -20,6 +20,7 @@
*/
#include <stdio.h>
+#include <unistd.h>
#include <check.h>
#include <qb/qbhash.h>
@@ -32,6 +33,11 @@ START_TEST(test_hash_load)
void *value;
uint64_t value_len;
+ if (access("/usr/shar/dict/words", R_OK) != 0 ) {
+ printf("no dict/words - not testing\n");
+ return;
+ }
+
res = qb_hash_initialize(&handle, 17, 0);
ck_assert_int_ne(handle, 0);
--
1.6.6.1