tests: fix spurious error when run directly with Solaris /usr/xpg4/bin/sh
authorStefano Lattarini <redacted>
Fri, 2 Mar 2012 18:48:36 +0000 (19:48 +0100)
committerJunio C Hamano <redacted>
Fri, 2 Mar 2012 22:41:06 +0000 (14:41 -0800)
commit661bfd13b49db0affebbdda5ac478ebe67634947
treee09ad288cc8b942bf96f2b8b6983928aeab7484a
parent70eb130768d17c33b9efbf60d7953cf6a57daecb
tests: fix spurious error when run directly with Solaris /usr/xpg4/bin/sh

If any test script is run directly with Solaris 10 /usr/xpg4/bin/sh or
/bin/ksh, it fails spuriously with a message like:

  t0000-basic.sh[31]: unset: bad argument count

This happens because those shells bail out when encountering a call to
"unset" with no arguments, and such unset call could take place in
'test-lib.sh'.  Fix that issue, and add a proper comment to ensure we
don't regress in this respect.

Signed-off-by: Stefano Lattarini <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/test-lib.sh
git clone https://git.99rst.org/PROJECT