Ed Avis <[EMAIL PROTECTED]> 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


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to