summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-05-15 19:12:35 +0200
committerJim Meyering <meyering@redhat.com>2012-05-16 07:38:20 +0200
commit0da5dfc5bf682cebcb831d7f740ff58629a827e7 (patch)
tree9bd80d21dc401e98e018c1677c9f09d8653e90c3
parent582cdfacf297181c2c5ffec83fd8a3c0f6562fc6 (diff)
downloadgrep-0da5dfc5bf682cebcb831d7f740ff58629a827e7.tar.gz
maint: avoid nit-picky syntax-check test failure; tweak big-hole test
* NEWS: Restore deleted newline in "old" NEWS, to fix a syntax-check test failure. * tests/big-hole: Use awk, rather than a shell loop: saves 3000 lines of verbose shell output in the .log file.
-rw-r--r--NEWS2
-rwxr-xr-xtests/big-hole12
2 files changed, 4 insertions, 10 deletions
diff --git a/NEWS b/NEWS
index f515e845..69262765 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,7 @@ GNU grep NEWS -*- outline -*-
Bootstrapping with Makefile.boot has been broken since grep 2.6,
and was removed.
+
* Noteworthy changes in release 2.12 (2012-04-23) [stable]
** Bug fixes
@@ -50,6 +51,7 @@ GNU grep NEWS -*- outline -*-
use -R if you prefer the old behavior of following all symlinks and
defaulting to reading all devices.
+
* Noteworthy changes in release 2.11 (2012-03-02) [stable]
** Bug fixes
diff --git a/tests/big-hole b/tests/big-hole
index 47e36e1f..20ade973 100755
--- a/tests/big-hole
+++ b/tests/big-hole
@@ -13,16 +13,8 @@ fi
# Create a file that starts with at least a buffer's worth of text,
# but has a big hole later.
-ten='1 2 3 4 5 6 7 8 9 10'
-x='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
-(for i in $ten; do
- for j in $ten; do
- for k in $ten; do
- echo $x
- done
- done
- done
- echo x | dd bs=1024k seek=8000000
+(${AWK-awk} 'BEGIN{ for (i=0;i<1000;i++) printf "%080d\n", 0 }' < /dev/null
+ echo x | dd bs=1024k seek=8000000
) >8T-or-so || skip_ 'cannot create big sparse file'
grep --binary-file=without-match x 8T-or-so >/dev/null