aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-10 22:20:54 +0100
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-11-10 22:20:54 +0100
commit03922ba0e3f2a46ebf09f2582333abcce023f596 (patch)
treebf91db43d7655db843a79633971eb5b6640e2231
parentac064a4e60b139f334ea67881fc072c63b8d2980 (diff)
test suite: fixed check for very large floating point constant
This was failing on aarch64 and ppc64 (via OBS) because they are rounding to another approximation than amd64.
-rw-r--r--tests/testsuite.at4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 73d4440..e86088e 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -60,7 +60,9 @@ TE_CHECK([[23.04:=]], 0, [23.04], ignore)
TE_CHECK([[0.04:=]], 0, [0.04], ignore)
TE_CHECK([[23.04#0:=]], 0, [23], ignore)
AT_SKIP_IF([test $TECO_NUMBER -lt 64])
-TE_CHECK([[11111111111111111111.1:=]], 0, [11111111111111110656], ignore)
+TE_CHECK([[11111111111111111111.1=]], 0, stdout, ignore)
+# Architectures differ in which approximation they choose.
+AT_FAIL_IF([! $GREP '^\(11111111111111110656\|11111111111111112704\)$' stdout])
AT_CLEANUP
AT_SETUP([Number stack])