mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source4/torture/ndr/winreg.c
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
70807a4267
commit
2c1075d63b
@ -376,7 +376,7 @@ static const uint8_t openkey_out_data[] = {
|
||||
static bool openkey_out_check(struct torture_context *tctx, struct winreg_OpenKey *r)
|
||||
{
|
||||
torture_assert(tctx, GUID_all_zero(&r->out.handle->uuid), "handle");
|
||||
torture_assert_werr_equal(tctx, r->out.result, WERR_BADFILE, "return code");
|
||||
torture_assert_werr_equal(tctx, r->out.result, WERR_FILE_NOT_FOUND, "return code");
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -402,7 +402,7 @@ static const uint8_t deletekey_out_data[] = {
|
||||
|
||||
static bool deletekey_out_check(struct torture_context *tctx, struct winreg_DeleteKey *r)
|
||||
{
|
||||
torture_assert_werr_equal(tctx, r->out.result, WERR_BADFILE, "return code");
|
||||
torture_assert_werr_equal(tctx, r->out.result, WERR_FILE_NOT_FOUND, "return code");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user