diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-09-01 12:35:55 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-09-02 17:35:22 +0200 |
commit | a91ffe4b0f6c6e16707ab634bfa9b3e1afab60eb (patch) | |
tree | 11d08170aedd7650efc24b579162f1f6dad0c6d1 /tests/pkcs11 | |
parent | 9eec15db0f1d5d9c1e3c2bbcd61bbedaa7f12c85 (diff) | |
download | gnutls-a91ffe4b0f6c6e16707ab634bfa9b3e1afab60eb.tar.gz |
.gitlab-ci.yml: use the gitlab.com shared runners
This removes the need to administer custom runners (except for
the FreeBSD runner which cannot run under Linux), makes the
testing on other platforms such as Debian simpler, and allows
merge requests to pass through the CI.
Diffstat (limited to 'tests/pkcs11')
-rw-r--r-- | tests/pkcs11/softhsm.h | 4 |
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"); |