]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Make the new printf-surprise test more precise.
authorJim Meyering <meyering@redhat.com>
Thu, 1 Nov 2007 11:06:11 +0000 (12:06 +0100)
committerJim Meyering <meyering@redhat.com>
Thu, 1 Nov 2007 11:06:11 +0000 (12:06 +0100)
commit094e533fadd92aa9c488d5c3ad8de11036798126
tree52b97e725f2b0827bf4fc31d974dc340a321f190
parentaccad81d2beca73a1212f09564d36f86492e6c97
Make the new printf-surprise test more precise.

* tests/test-lib.sh (require_ulimit_): New function.
* tests/misc/printf-surprise: Use ulimit -v to trigger the fixed bug,
and rather than checking printf's exit status (which would go wrong
on FreeBSD 6.1, since their printf(3) function doesn't require
lots of memory in this case) simply test whether it outputs
the first 10 bytes.
ChangeLog
tests/misc/printf-surprise
tests/test-lib.sh