tests: fix a spurious failure with dash
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 23 Apr 2012 17:03:33 +0000 (19:03 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 7 May 2012 20:10:29 +0000 (22:10 +0200)
commitf974da70780271a64295ad87dc92f096b90e9908
tree34f8e71f755ac08fba5b17b820d6fae5edd09df9
parent1cf7d18839c7f9d878a322f841e1be8845d83514
tests: fix a spurious failure with dash

The dash shell, at least version 0.5.5.1, doesn't always bail out
with a syntax error when a stray "fi" in encountered:

  $ dash -c ":; fi"; echo stat = $?
  stat = 0

See also the relevant bug report:

  <http://permalink.gmane.org/gmane.comp.shells.dash/717>

This behaviour was causing a spurious error in our testsuite.  Fix it.

* t/self-check-exit.tap: Use a stray parentheses rather than a stray
'fi' to trigger a syntax error.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
t/self-check-exit.tap