testprogs: Make testit_expect_failure() return 0 on success
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 11 Apr 2023 02:04:59 +0000 (14:04 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 12 Apr 2023 13:52:32 +0000 (13:52 +0000)
commit833cefe8eeb80e1e5475fc277e09cefdc89b6dce
tree4c7a991320f544004927f1c262c3244738f75c70
parentb1df85e7d30c59eeb37c243d88efcab8e3d1f9a6
testprogs: Make testit_expect_failure() return 0 on success

This is the behaviour that most existing callers expect, but the
function actually returns a non-zero status code in that case.

Adjust all callers expecting the opposite behaviour to match.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
12 files changed:
nsswitch/tests/test_wbinfo.sh
source3/script/tests/test_smbclient_encryption_off.sh
testprogs/blackbox/bogus.sh
testprogs/blackbox/subunit.sh
testprogs/blackbox/test_kpasswd_mit.sh
testprogs/blackbox/test_ldb.sh
testprogs/blackbox/test_net_ads.sh
testprogs/blackbox/test_net_ads_dns.sh
testprogs/blackbox/test_password_settings.sh
testprogs/blackbox/test_pdbtest.sh
testprogs/blackbox/test_trust_ntlm.sh
testprogs/blackbox/test_weak_crypto_server.sh