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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user