test-lib tests: assert 1 exit code, not non-zero
commit56722a0635141f294c04c4b62add8f83aa8af71b
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 22 Sep 2021 11:19:52 +0000 (22 13:19 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 22 Sep 2021 23:22:41 +0000 (22 16:22 -0700)
tree7506f6a7e778076692f659d5082f00fb476a1615
parente07b817cfca9d15e6930dc09344846fb5246d4d7
test-lib tests: assert 1 exit code, not non-zero

Improve the testing for test-lib.sh itself to assert that we have a
exit code of 1, not any non-zero. Improves code added in
0445e6f0a12 (test-lib: '--run' to run only specific tests,
2014-04-30).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-subtest.sh