diff options
author | Jim Meyering <jim@meyering.net> | 2007-07-24 09:59:14 +0200 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-07-24 09:59:14 +0200 |
commit | c12bf5fb7ff8a40884a99332fb20abc9c53be75c (patch) | |
tree | d7f11b42e22fff9770aa7b937334438c86093e3b /tests/sort | |
parent | 9d8e077ca1f4402b608d1464794e390bc7fc5b81 (diff) | |
download | coreutils-c12bf5fb7ff8a40884a99332fb20abc9c53be75c.tar.xz |
sort: add a test to exercise the affected code.
* tests/sort/Test.pm (realloc-buf): Exercise the code that changed
yesterday. No other test in all of "make check" does this.
* NEWS: Mention the fix.
Diffstat (limited to 'tests/sort')
-rw-r--r-- | tests/sort/Test.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/sort/Test.pm b/tests/sort/Test.pm index 134fe19dd..7fd499999 100644 --- a/tests/sort/Test.pm +++ b/tests/sort/Test.pm @@ -283,7 +283,11 @@ my @tv = ( # Using an old-style key-specifying option like +1 with an invalid # ordering-option character would cause sort to try to free an invalid # (non-malloc'd) pointer. This bug affects coreutils-6.5 through 6.9. -['obs-inval', '+1x', '', '', 2] +['obs-inval', '+1x', '', '', 2], + +# Exercise the code that enlarges the line buffer. See the thread here: +# http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11006 +['realloc-buf', '-S1', 'a'x4000 ."\n", 'a'x4000 ."\n", 0], ); sub test_vector |