]> git.ipfire.org Git - thirdparty/automake.git/commit
tests: prefer ulimit over timeout in test on a memory-hogging bug
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 1 Jun 2011 10:09:23 +0000 (12:09 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 1 Jun 2011 14:35:08 +0000 (16:35 +0200)
commit908d335c0e02191c46f955fa6c7d6b6497de85e8
treebb7c8e1fbbb9ab2a67f7df6ff704899f49c51b71
parent087f0c707d2337b8d9601a003d0b5fcea7f3160f
tests: prefer ulimit over timeout in test on a memory-hogging bug

* tests/cond29.test: Use 'ulimit' instead of 'timeout' to ensure
that automake does not uses up too much resources.  This is really
and improvement because the bug tested by this script wasn't just
a "it hangs" or "it runs too slow" bug, but rather a memory-hogging
bug (due to combinatorial explosion when many Automake conditionals
had to be handled) which could easily crash the whole system, which
is unacceptable.  The requirement of a proper and working 'ulimit'
builtin might cause the test to be skipped on more systems, but
that shouldn't be a problem since the bug isn't about a portability
issue, but is rather an automake internal implementation problem.
I've verified that the test as updated by this patch still passes
with automake 1.8.5, automake 1.10.2, and obviously the development
version of automake, and that it fails with automake 1.7.9.
ChangeLog
tests/cond29.test