From 03922ba0e3f2a46ebf09f2582333abcce023f596 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 10 Nov 2026 22:20:54 +0100 Subject: 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. --- tests/testsuite.at | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') 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]) -- cgit v1.2.3