1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

tests: Allow alternative error code for backupkey test

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Garming Sam
2016-07-12 17:10:15 +12:00
committed by Garming Sam
parent cc339b0069
commit cea4a4b9b2

View File

@ -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 */