]> git.ipfire.org Git - thirdparty/autoconf.git/commit
tests: fix spurious failure due to Solaris XPG4 sh bug
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 4 Mar 2012 16:14:14 +0000 (17:14 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 4 Mar 2012 16:14:14 +0000 (17:14 +0100)
commit43814d248d030849c366e83e550f90a88596461d
tree9c190035a148bd151a73b60c4c184d35727968d3
parent6e7264cf45b61cf40e0cc91b63ae8365d4f2d1f1
tests: fix spurious failure due to Solaris XPG4 sh bug

On Solaris 10, the /usr/xpg4/bin/sh shell seems unable to execute
a shell script named 'script':

  $ touch script
  $ /bin/sh script; echo status: $? # As expected.
  status: 0
  $ /usr/xpg4/bin/sh script; echo status: $? # Weirdness follows.
  /usr/xpg4/bin/sh: script: cannot execute
  status: 1

This was causing a spurious testsuite failure for users which have
/usr/xpg4/bin in $PATH before /bin and /usr/bin.  Fix that.

* tests/m4sh.at (Configure re-execs self with CONFIG_SHELL): Rename
the m4sh-produced script to 'script2', to avoid the just-described
issue.
tests/m4sh.at