summaryrefslogtreecommitdiff
path: root/tests/du/basic
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-28 12:38:52 +0000
committerJim Meyering <jim@meyering.net>2003-03-28 12:38:52 +0000
commit5165cd0f65bab88220072b89540cbca69b0f1f50 (patch)
tree508a1582bfb41ca5d0f09ddc2984173c80e7cab2 /tests/du/basic
parent2210b0a9dec0b95c753f05deead416580be8bfa1 (diff)
downloadcoreutils-5165cd0f65bab88220072b89540cbca69b0f1f50.tar.xz
Use seq, not `yes' to generate 4KB of data.
Otherwise, on systems (DJGPP) that emulate pipes using files, this test would never complete, waiting for `yes' to terminate.
Diffstat (limited to 'tests/du/basic')
-rwxr-xr-xtests/du/basic4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/du/basic b/tests/du/basic
index 7a6bd6ad2..874d92ebc 100755
--- a/tests/du/basic
+++ b/tests/du/basic
@@ -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