tests: avoid tons of spurious failures on NetBSD
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 5 Aug 2012 10:14:19 +0000 (12:14 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 5 Aug 2012 10:14:19 +0000 (12:14 +0200)
commit5b1dae570aee8f2917c082a172b0268e7cfc2682
tree3b3f6ec60e8387ba70f109ed6bb42982d671ac37
parentb6a330e17bf0c7aca9bc7210f500aecee25077d0
tests: avoid tons of spurious failures on NetBSD

* t/ax/am-test-lib.sh (process_requirements): Set the '$am_tool' variable
to the empty string before trying to unset it; otherwise, we might be
attempting to unset an already-unset variable, which (together with the
presence of the 'errexit' shell flag) causes spurious failures at least
with the /bin/sh shell from NetBSD 5.1.  This was actually causing the
great majority of the Automake tests (all those not using a "required=..."
declaration) to fail spuriously on that platform!

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/ax/am-test-lib.sh