summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/pkcs11/softhsm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/pkcs11/softhsm.h b/tests/pkcs11/softhsm.h
index 3ac8167d74..bd94bd8526 100644
--- a/tests/pkcs11/softhsm.h
+++ b/tests/pkcs11/softhsm.h
@@ -50,13 +50,13 @@ inline static const char *softhsm_lib(void)
{
const char *lib;
- if (access(LIB1, R_OK) == 0) {
+ if (sizeof(int) == 8 && access(LIB1, R_OK) == 0) {
lib = LIB1;
} else if (access(LIB2, R_OK) == 0) {
lib = LIB2;
} else if (access(LIB3, R_OK) == 0) {
lib = LIB3;
- } else if (access(LIB4, R_OK) == 0) {
+ } else if (sizeof(int) == 8 && access(LIB4, R_OK) == 0) {
lib = LIB4;
} else {
fprintf(stderr, "cannot find softhsm module\n");