aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/builtin/sed.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test/script/builtin/sed.test')
-rw-r--r--tests/test/script/builtin/sed.test14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/test/script/builtin/sed.test b/tests/test/script/builtin/sed.test
index ef99539..c0a8172 100644
--- a/tests/test/script/builtin/sed.test
+++ b/tests/test/script/builtin/sed.test
@@ -301,12 +301,14 @@
: big
:
-: Sed a big file (about 3MB) to test that the builtin is asynchronous.
+: Sed a big file (about 100K) to test that the builtin is asynchronous.
:
{
- s="------------------------------------------------------------------------"
- s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s"
- s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s"
- s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s"
- $c <"cat <'$s' | sed -e 's/^x//' >'$s'" && $b
+ $c <<EOI && $b
+ s="--------------------------------"
+ s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s"
+ s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s"
+ s="$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s$s"
+ cat <"$s" | sed -e 's/^x//' | cat >"$s"
+ EOI
}