Use seq, not `yes' to generate 4KB of data.
authorJim Meyering <jim@meyering.net>
Fri, 28 Mar 2003 12:38:52 +0000 (12:38 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 28 Mar 2003 12:38:52 +0000 (12:38 +0000)
Otherwise, on systems (DJGPP) that emulate pipes using files,
this test would never complete, waiting for `yes' to terminate.

tests/du/basic

index 7a6bd6ad2ac16d3de657210524dc6cefbcef0112..874d92ebc4053d5d83bf29151fb50821eb6e967a 100755 (executable)
@@ -24,8 +24,8 @@ printf 'make-sure-the-file-is-non-empty\n' > a/b/F || framework_failure=1
 # Ensure that these files contain more than 64 bytes, so that we don't
 # immediately disqualify file systems (e.g., NetApp) on which smaller
 # files take up zero disk blocks.
-yes | head --bytes=4k > d/1
-yes | head --bytes=4k > d/sub/2
+seq --format=%100g 1 50 | head --bytes=4k > d/1
+cp d/1 d/sub/2
 
 if test $framework_failure = 1; then
   echo "$0: failure in testing framework" 1>&2