tests: avoid extra forks in the testsuite
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 18 Jun 2011 15:57:53 +0000 (17:57 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 19 Jun 2011 19:57:43 +0000 (21:57 +0200)
commit2f60384d6abc787f5c4dfb5e9bffa328265b3028
treef3875507368572d2c2a38be2530bca1fe68545bd
parenta51c6e0356e5c66fd9c2539f220c6cd2ad2de1e7
tests: avoid extra forks in the testsuite

* tests/shell-or-perl: Prefer the `read' builtin over `grep' to
look at the shebang line of test scripts.  Since `read' is a
special builtin, it might abort the whole program upon failures,
so add extra sanity checks, verifying that the test script exists
and is readable, before trying to read from it.
tests/shell-or-perl