Control: tags -1 + fixed-upstream patch

On 2018-04-21 19:05 +0300, Adrian Bunk wrote:

> Source: datamash
> Version: 1.3-1
> Severity: serious
>
> https://buildd.debian.org/status/package.php?p=datamash&suite=sid
>
> ...
> FAIL: tests/datamash-output-format
> ==================================
>
> datamash (GNU datamash) 1.3
> Copyright (C) 2018 Assaf Gordon
> License GPLv3+: GNU GPL version 3 or later 
> <https://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Written by Assaf Gordon.
> r1...
> r2...
> r3...
> r4...
> r5...
> r6...
> r7...
> r8...
> r9...
> f1...
> f2...
> f3...
> f4...
> f5...
> f6...
> f7...
> g1...
> g2...
> g3...
> g4...
> g5...
> g6...
> g7...
> e1...
> e2...
> a1...
> datamash-output-format.pl: test a1: stdout mismatch, comparing a1.2 
> (expected) and a1.O (actual)
> *** a1.2      Sun Apr 15 12:44:18 2018
> --- a1.O      Sun Apr 15 12:44:18 2018
> ***************
> *** 1 ****
> ! 0x8.000p-3
> --- 1 ----
> ! 0x1.000p+0
> m1...
> m2...
> FAIL tests/datamash-output-format.pl (exit status: 1)
> ...
> ============================================================================
> Testsuite summary for GNU datamash 1.3
> ============================================================================
> # TOTAL: 20
> # PASS:  17
> # SKIP:  2
> # XFAIL: 0
> # FAIL:  1
> # XPASS: 0
> # ERROR: 0
> ============================================================================
> See ./test-suite.log
> Please report to assafgor...@gmail.com
> ============================================================================
> Makefile:3168: recipe for target 'test-suite.log' failed
> make[5]: *** [test-suite.log] Error 1

Should be fixed by commit d446dba317[1] ("tests: fix --format='%4000f'
expected output").

Cheers,
       Sven


1. 
https://git.savannah.gnu.org/cgit/datamash.git/commit/?id=d446dba317aa067440d6312d955d523129949327

>From d446dba317aa067440d6312d955d523129949327 Mon Sep 17 00:00:00 2001
From: Assaf Gordon <assafgor...@gmail.com>
Date: Thu, 22 Mar 2018 11:00:34 -0600
Subject: [PATCH 1/1] tests: fix --format='%4000f' expected output

Can be 1.000009... or 1.000008999, depending on representation.

* tests/datamash-output-format.pl: Check only the first 5 digits.
---
 tests/datamash-output-format.pl | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/datamash-output-format.pl b/tests/datamash-output-format.pl
index 52c68a2..ca99bb0 100755
--- a/tests/datamash-output-format.pl
+++ b/tests/datamash-output-format.pl
@@ -98,12 +98,13 @@ my @Tests =
    {OUT => "0" x 3999 . "1\n"}],
 
   # due to binary floating representation, some decimal point digits won't be
-  # zero (e.g. 1.0000090000000000000000000000000523453254320000000...).
-  # The OUT_SUBST replaces exactly 3994 digits (as expected from the format)
+  # zero (e.g. 1.0000090000000000000000000000000523453254320000000... or
+  # 1.000008999999...).
+  # The OUT_SUBST replaces exactly 3995 digits (as expected from the format)
   # with an "X".
   ['m2', '--format "%.4000f"   sum 1',  {IN_PIPE=>$in1},
-   {OUT => "1.000009X\n"},
-   {OUT_SUBST => 's/^(1\.000009)([0-9]{3994})$/\1X/'}],
+   {OUT => "1.00000X\n"},
+   {OUT_SUBST => 's/^(1\.00000)([0-9]{3995})$/\1X/'}],
 
 );
 
-- 
2.19.1

Reply via email to