aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2026-08-26 03:55:02 +0200
committerNIIBE Yutaka <[email protected]>2026-08-26 03:55:02 +0200
commit747eb8798bed752ede9b4cec03507e64bf6a497a (patch)
tree81f5a14bb1df43a8d76f1b9a11f93fec0edf722e /tests
parenttests: Fix gpgrt_bsprintf test for PowerPC 64. (diff)
downloadlibgpg-error-747eb8798bed752ede9b4cec03507e64bf6a497a.tar.gz
libgpg-error-747eb8798bed752ede9b4cec03507e64bf6a497a.zip
tests: Fix gpgrt_bsprintf test for PowerPC 32.
* tests/t-printf.c (check_large_float): Use _ARCH_PPC to identify Power architecture, both of 32-bit and 64-bit. -- Fixes-commit: 9cc750a816554e46d3e1496533f927b17ef3fcef Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r--tests/t-printf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/t-printf.c b/tests/t-printf.c
index fb8bdc3..eb25c35 100644
--- a/tests/t-printf.c
+++ b/tests/t-printf.c
@@ -469,7 +469,7 @@ check_large_float (void)
show ("format \"%%.100Lf\" with DBL_MAX: ->%s<-\n", buf);
gpgrt_free (buf);
-# if defined(__powerpc64__) && LDBL_MANT_DIG == 106
+# if defined(_ARCH_PPC) && LDBL_MANT_DIG == 106
if (verbose)
show ("IBM double-double - skipping LDBL_MAX test\n");
# elif defined(HAVE_LONG_DOUBLE_WIDER)