From: Jim Meyering Date: Tue, 30 Oct 2007 10:17:59 +0000 (+0100) Subject: Avoid seq floating-point test failure on FreeBSD 6.1. X-Git-Tag: v6.9.89~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=565441559512fab14549227615572d8b3fe9197a;p=thirdparty%2Fcoreutils.git Avoid seq floating-point test failure on FreeBSD 6.1. * tests/misc/seq (float-4): Also accept -0.0. --- diff --git a/ChangeLog b/ChangeLog index 5c42314829..726c674237 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-30 Jim Meyering + + Avoid seq floating-point test failure on FreeBSD 6.1. + * tests/misc/seq (float-4): Also accept -0.0. + 2007-10-29 Jim Meyering Change a "make dist" diagnostic. diff --git a/tests/misc/seq b/tests/misc/seq index 2d662c39cd..8da4335dd2 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)]}],