From: Garming Sam Date: Tue, 12 Jul 2016 05:10:15 +0000 (+1200) Subject: tests: Allow alternative error code for backupkey test X-Git-Tag: tdb-1.3.10~416 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cea4a4b9b22c78f9736e2290d302a88644db4031;p=thirdparty%2Fsamba.git tests: Allow alternative error code for backupkey test Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett --- diff --git a/source4/torture/rpc/backupkey_heimdal.c b/source4/torture/rpc/backupkey_heimdal.c index 32b023529e8..c0db48d58cf 100644 --- a/source4/torture/rpc/backupkey_heimdal.c +++ b/source4/torture/rpc/backupkey_heimdal.c @@ -1939,10 +1939,12 @@ static bool test_ServerWrap_decrypt_wrong_stuff(struct torture_context *tctx, WERR_INVALID_ACCESS, "decrypt should fail with WERR_INVALID_ACCESS"); } else { - torture_assert_werr_equal(tctx, - r.out.result, - WERR_INVALID_PARAM, - "decrypt should fail with WERR_INVALID_PARAM"); + if (!W_ERROR_EQUAL(r.out.result, WERR_INVALID_PARAM)) { + torture_assert_werr_equal(tctx, + r.out.result, + WERR_INVALID_ACCESS, + "decrypt should fail with WERR_INVALID_ACCESS or WERR_INVALID_PARAM"); + } } /* Decrypt */