Commit Graph
17 Commits
Author SHA1 Message Date
Paul Eggert ec95137cc3 Remove some arbitrary restrictions on size fields,
so that commands like "sort -k 18446744073709551616" no longer fail merely
because 18446744073709551616 doesn't fit in uintmax_t.  The trick is that
these fields can all be treated as effectively infinity;  their exact
values don't matter, since no internal buffer can be that long.
* src/join.c (string_to_join_field): Verify that SIZE_MAX <= ULONG_MAX
if the code assumes this.  Silently truncate too-large values to SIZE_MAX,
as the remaining code will do the right thing in this case.
* src/sort.c (parse_field_count): Likewise.
* src/uniq.c (size_opt, main): Likewise.
* tests/join/Test.pm (bigfield): New test.
* tests/sort/Test.pm (bigfield): New test.
* tests/uniq/Test.pm (121): New test.
Signed-off-by: Jim Meyering <jim@meyering.net>
2006-12-13 22:03:54 +01:00
Jim Meyering dab023dec1 * tests/uniq/Test.pm (test_vector): Skip the pipe-reading test
whenever uniq is expected to fail.  This should catch the other case
[test #112] in which uniq emits "cat: write error: Broken pipe" on
some systems.
2006-12-09 14:17:00 +01:00
Jim Meyering 9f1b96313e Make the output of "make check" more reproducible.
* tests/uniq/Test.pm: Don't perform the pipe-reading version of test
118, since it emits "cat: write error: Broken pipe" on some systems.
2006-12-07 10:04:04 +01:00
Paul Eggert 218fa5c61b Add/fix copyright notices and adjust to latest GNU FDL. 2006-08-17 19:58:17 +00:00
Paul Eggert 2ae6e04c14 (tv): Rename tests from obs to obs-plus
if they use file names starting with +.
(test_vector): Don't set _POSIX2_VERSION if obs but not obs-plus.
2005-04-29 23:51:33 +00:00
Paul Eggert faca6bfc15 Convert to UTF-8. 2004-08-10 22:47:08 +00:00
Jim Meyering 4efc97aa9f (101, 102): Update tests of -c accordingly. 2003-07-18 08:01:26 +00:00
Jim Meyering 5413c2bbae Test that 'uniq -d -u' outputs nothing. 2003-05-14 08:35:57 +00:00
Jim Meyering c58e076233 (test_vector): Rename tests of obsolete usage to have prefix of `obs'.
For tests matching /^obs/,
put _POSIX2_VERSION=199209 in the environment, so the tests succeed
even when the environment would have contained _POSIX2_VERSION=200112.
2002-02-18 12:39:19 +00:00
Jim Meyering 63b6a548e1 adjust to use new option-arg name 2001-10-04 07:50:09 +00:00
Jim Meyering 71409500a9 Re-enable some commented-out tests. 2001-08-25 15:10:53 +00:00
Jim Meyering 18005e1153 Add tests for -s 0 and -w 0. 2001-08-25 09:04:54 +00:00
Jim Meyering b087829d9b Add new test, #54, for the just-fixed bug. 2001-08-25 05:48:19 +00:00
Jim Meyering c08d959056 reflect option value renamings 2001-05-20 06:54:05 +00:00
Jim Meyering cfb5f2d82a Test new, --all-repeated options. 2001-05-19 08:43:57 +00:00
Jim Meyering 7a545dda54 Add tests from Jochen Hein. 1999-01-09 16:15:32 +00:00
Jim Meyering 8a644a90ef . 1998-12-13 19:01:59 +00:00