* tests/du/basic: Generate 4KB file simply using printf, rather than
authorJim Meyering <jim@meyering.net>
Sat, 2 Dec 2006 21:04:13 +0000 (22:04 +0100)
committerJim Meyering <jim@meyering.net>
Sat, 2 Dec 2006 21:04:13 +0000 (22:04 +0100)
seq+head.  This avoids a spurious "Broken pipe" diagnostic from seq.

ChangeLog
tests/du/basic

index 714f8b9..94db40d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-02  Jim Meyering  <jim@meyering.net>
+
+       * tests/du/basic: Generate 4KB file simply using printf, rather than
+       seq+head.  This avoids a spurious "Broken pipe" diagnostic from seq.
+
 2006-11-28  Jim Meyering  <jim@meyering.net>
 
        * tests/mv/no-target-dir: Detect a buggy rename syscall.  If found,
index 325e5ac..d03ce0c 100755 (executable)
@@ -41,7 +41,7 @@ mkdir -p a/b d d/sub || framework_failure=1
 # immediately disqualify file systems (e.g., NetApp) on which smaller
 # files take up zero disk blocks.
 printf '%*s' 257 make-sure-the-file-is-non-empty > a/b/F || framework_failure=1
-seq --format=%100g 1 90 | head --bytes=4k > d/1
+printf %4096s x > d/1
 cp d/1 d/sub/2
 
 if test $framework_failure = 1; then