]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture: Use NT_STATUS_NOTIFY_CLEANUP instead of STATUS_NOTIFY_CLEANUP
authorChristof Schmitt <cs@samba.org>
Fri, 19 Jun 2020 19:39:22 +0000 (12:39 -0700)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 22 Jun 2020 12:07:37 +0000 (12:07 +0000)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/torture/smb2/notify.c

index d8aa44f5d4c1af89cac5549a539f7586a8103d95..e91e7356e3e2315557a8f713e250a415833b2e50 100644 (file)
@@ -466,7 +466,7 @@ static bool torture_smb2_notify_dir(struct torture_context *torture,
        CHECK_STATUS(status, NT_STATUS_OK);
 
        status = smb2_notify_recv(req, torture, &(notify.smb2));
-       CHECK_STATUS(status, STATUS_NOTIFY_CLEANUP);
+       CHECK_STATUS(status, NT_STATUS_NOTIFY_CLEANUP);
        CHECK_VAL(notify.smb2.out.num_changes, 9);
 
 done:
@@ -1338,7 +1338,7 @@ static bool torture_smb2_notify_tree_disconnect_1(
        CHECK_STATUS(status, NT_STATUS_OK);
 
        status = smb2_notify_recv(req, torture, &(notify.smb2));
-       CHECK_STATUS(status, STATUS_NOTIFY_CLEANUP);
+       CHECK_STATUS(status, NT_STATUS_NOTIFY_CLEANUP);
        CHECK_VAL(notify.smb2.out.num_changes, 0);
 
 done:
@@ -1409,7 +1409,7 @@ static bool torture_smb2_notify_close(struct torture_context *torture,
        CHECK_STATUS(status, NT_STATUS_OK);
 
        status = smb2_notify_recv(req, torture, &(notify.smb2));
-       CHECK_STATUS(status, STATUS_NOTIFY_CLEANUP);
+       CHECK_STATUS(status, NT_STATUS_NOTIFY_CLEANUP);
        CHECK_VAL(notify.smb2.out.num_changes, 0);
 
 done:
@@ -1479,7 +1479,7 @@ static bool torture_smb2_notify_ulogoff(struct torture_context *torture,
        CHECK_STATUS(status, NT_STATUS_OK);
 
        status = smb2_notify_recv(req, torture, &(notify.smb2));
-       CHECK_STATUS(status, STATUS_NOTIFY_CLEANUP);
+       CHECK_STATUS(status, NT_STATUS_NOTIFY_CLEANUP);
        CHECK_VAL(notify.smb2.out.num_changes, 0);
 
 done:
@@ -1556,7 +1556,7 @@ static bool torture_smb2_notify_session_reconnect(struct torture_context *tortur
                       "session setup with previous_session_id failed");
 
        status = smb2_notify_recv(req, torture, &(notify.smb2));
-       CHECK_STATUS(status, STATUS_NOTIFY_CLEANUP);
+       CHECK_STATUS(status, NT_STATUS_NOTIFY_CLEANUP);
        CHECK_VAL(notify.smb2.out.num_changes, 0);
 
        status = smb2_logoff(tree1->session);
@@ -1644,7 +1644,7 @@ static bool torture_smb2_notify_invalid_reauth(struct torture_context *torture,
        CHECK_STATUS(status, NT_STATUS_LOGON_FAILURE);
 
        status = smb2_notify_recv(req, torture, &(notify.smb2));
-       CHECK_STATUS(status, STATUS_NOTIFY_CLEANUP);
+       CHECK_STATUS(status, NT_STATUS_NOTIFY_CLEANUP);
        CHECK_VAL(notify.smb2.out.num_changes, 0);
 
 done: