bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FAIL: df/total-awk.log


From: Jim Meyering
Subject: Re: FAIL: df/total-awk.log
Date: Sat, 11 Oct 2008 12:16:02 +0200

Ed Avis <address@hidden> wrote:

> With current coreutils source from git, one test fails on my machine.  It is a
> Fedora 9 box with a few Windows filesystems mounted.  Here is the tests/test-
> suite.log.
>
> ===========================================================
>    GNU coreutils 7.0.5-42df6-dirty: tests/test-suite.log
> ===========================================================
>
> 1 of 353 tests failed.  (44 tests were not run).
>
> .. contents:: :depth: 2
>
>
> FAIL: df/total-awk.log (exit: 1)
> ================================
> + diff -u out1 out2
> --- out1      2008-10-10 20:22:10.000000000 +0100
> +++ out2      2008-10-10 20:22:10.000000000 +0100
> @@ -1,3 +1,3 @@
> -4.11081e+09
> -2.60756e+09
> +4110809460
> +2607560286
>  1501678984

Thanks for the report.
That's due to our use of "print", which uses awk's default format.

Does this fix it for you?

diff --git a/tests/df/total-awk b/tests/df/total-awk
index a10a03d..fad2d80 100755
--- a/tests/df/total-awk
+++ b/tests/df/total-awk
@@ -51,9 +51,9 @@ BEGIN {
     }
 }
 END {
-  print total
-  print used
-  print available
+  printf "%d\n", total
+  printf "%d\n", used
+  printf "%d\n", available
 }
 ' > compute_sum.awk || fail=1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]