summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-10-30 11:17:59 +0100
committerJim Meyering <meyering@redhat.com>2007-10-30 11:17:59 +0100
commit565441559512fab14549227615572d8b3fe9197a (patch)
tree0da5a2a1fa0c75dd003b588ba34e51c8b88871f9
parentb00f87cfa3cb166118f04e94b3a79aaa3b6c4fc0 (diff)
downloadcoreutils-565441559512fab14549227615572d8b3fe9197a.tar.xz
Avoid seq floating-point test failure on FreeBSD 6.1.
* tests/misc/seq (float-4): Also accept -0.0.
-rw-r--r--ChangeLog5
-rwxr-xr-xtests/misc/seq4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5c4231482..726c67423 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-30 Jim Meyering <meyering@redhat.com>
+
+ Avoid seq floating-point test failure on FreeBSD 6.1.
+ * tests/misc/seq (float-4): Also accept -0.0.
+
2007-10-29 Jim Meyering <meyering@redhat.com>
Change a "make dist" diagnostic.
diff --git a/tests/misc/seq b/tests/misc/seq
index 2d662c39c..8da4335dd 100755
--- a/tests/misc/seq
+++ b/tests/misc/seq
@@ -48,7 +48,9 @@ my @Tests =
['float-1', qw(0.8 0.1 0.9), {OUT => [qw(0.8 0.9)]}],
['float-2', qw(0.1 0.99 1.99), {OUT => [qw(0.10 1.09)]}],
['float-3', qw(10.8 0.1 10.95), {OUT => [qw(10.8 10.9)]}],
- ['float-4', qw(0.1 -0.1 -0.2), {OUT => [qw(0.1 0.0 -0.1 -0.2)]}],
+ ['float-4', qw(0.1 -0.1 -0.2), {OUT => [qw(0.1 0.0 -0.1 -0.2)]},
+ {OUT_SUBST => 's,^-0\.0$,0.0,'},
+ ],
['float-5', qw(0.8 1e-1 0.9), {OUT => [qw(0.8 0.9)]}],
['float-6', qw(0.8 0.1 0.90000000000000000000), {OUT => [qw(0.8 0.9)]}],