2 # Test for this fix: 461231f022bdb3ee392622d31dc475034adceeb2.
3 # Ensure that seq prints exactly two numbers for a 2-number integral
4 # range at the limit of floating point precision.
6 # Copyright (C) 2008-2024 Free Software Foundation, Inc.
8 # This program is free software: you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation, either version 3 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
21 .
"${srcdir=.}/tests/init.sh"; path_prepend_ .
/src
25 # Run this test only with glibc and sizeof (long double) > sizeof (double).
26 # Otherwise, there are known failures.
29 #if defined __GNU_LIBRARY__ && __GLIBC__ >= 2
30 int foo
[sizeof
(long double
) - sizeof
(double
) - 1];
32 "run this test only with glibc"
37 'this test runs only on systems with glibc and long double != double'
42 seq $a $b > out || fail
=1
43 printf "$a\n$b\n" > exp || fail
=1
44 compare exp out || fail
=1