t/{t5541,lib-httpd}: replace problematic '!()' notation with test_must_fail
commit77b5be2abab69a69618dd40a6ca8b754388b8216
authorBrandon Casey <drafnel@gmail.com>
Tue, 20 Jul 2010 18:27:55 +0000 (20 13:27 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Jul 2010 18:37:45 +0000 (20 11:37 -0700)
tree3f22f84af892942ffdfefdf640c5352eb4582755
parent460d562eab00070dfeb54f6ecbf803ad14aed4a5
t/{t5541,lib-httpd}: replace problematic '!()' notation with test_must_fail

The '!()' notation is interpreted as a pattern-list on Ksh.  The Ksh man
page describe it as follows:

   !(pattern-list)
      Matches anything except one of the given patterns.

Ksh performs a file glob using the pattern-list and then tries to execute
the first file in the list.  If a space is added between the '!' and the
open parens, then Ksh will not interpret it as a pattern list, but in this
case, it is preferred to use test_must_fail, so lets do so.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-httpd.sh
t/t5541-http-push.sh