s4: torture: Ensure we can't exit without deleting our directory.
authorJeremy Allison <jra@samba.org>
Fri, 31 Aug 2018 22:43:41 +0000 (15:43 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 4 Sep 2018 00:31:27 +0000 (02:31 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/smb2/notify.c

index 0e5ba4a7144c037e1cffa3384343193d80e180d2..02a76c626e371fd14c573d092c433b44ef0ce076 100644 (file)
@@ -2486,7 +2486,7 @@ static bool torture_smb2_inotify_rename(struct torture_context *torture,
 
        while (!NT_STATUS_EQUAL(req->status, STATUS_PENDING)) {
                if (tevent_loop_once(torture->ev) != 0) {
-                       return false;
+                       goto done;
                }
        }