summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-09-03 10:23:49 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-09-03 10:26:01 +0200
commit85b7058898a0095334dd2f8ebc964d582f8cff02 (patch)
tree8757fc1d81d0c664133295067b291db9106be90c
parenta91ffe4b0f6c6e16707ab634bfa9b3e1afab60eb (diff)
downloadgnutls-85b7058898a0095334dd2f8ebc964d582f8cff02.tar.gz
tests: template-test: use uniform way to detect 32-bit systems
-rwxr-xr-xtests/cert-tests/template-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cert-tests/template-test b/tests/cert-tests/template-test
index 1d40735908..808b52a9e6 100755
--- a/tests/cert-tests/template-test
+++ b/tests/cert-tests/template-test
@@ -117,7 +117,7 @@ fi
rm -f tmp-tt.pem
# The following test works in 64-bit systems
-if echo __SIZEOF_POINTER__ | cpp -E - - | grep '^8$' >/dev/null; then
+if test "$(getconf LONG_BIT)" = "64"; then
datefudge -s "2007-04-22" \
"${CERTTOOL}" --generate-self-signed \