]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/torture: directly remove the dummy signal event again to avoid flapping tests
authorStefan Metzmacher <metze@samba.org>
Wed, 28 May 2025 20:13:55 +0000 (22:13 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 2 Jun 2025 19:13:27 +0000 (19:13 +0000)
I don't know why but commit 57a57a189bd9a7348656990b2c888a328b524bb0:

 lib/torture: assert that a test doesn't create new talloc children of context->ev

introduced the regression thad lead to commit 3fa94d9f2fcb165d435c62badde9e3c8569ff40d:

 selftest: mark samba4.rpc.samr.passwords.lockout on ncacn_np with .samr.lockout as flapping

Doing a TALLOC_FREE(dummy_se) still means we have the
tevent_add_fd() from tevent_common_wakeup_init() cached as
talloc child of tevent_context and that is all we need here
and the test is not flagging anymore.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Mon Jun  2 19:13:27 UTC 2025 on atb-devel-224

lib/torture/torture.c
selftest/flapping.d/samba4.rpc.samr.passwords [deleted file]

index 78caaa8c9ba858d95768326bef12efdad2d66f25..930b6036325200df0e5ee8c84083069974b7bdd3 100644 (file)
@@ -605,6 +605,7 @@ static bool internal_torture_run_test(struct torture_context *_context,
                        TALLOC_FREE(frame);
                        return false;
                }
+               TALLOC_FREE(dummy_se);
 
                evtb1 = talloc_total_blocks(context->ev);
        }
@@ -728,6 +729,7 @@ bool torture_run_tcase_restricted(struct torture_context *_context,
                context = _context;
                goto setup_failed;
        }
+       TALLOC_FREE(dummy_se);
 
        evtb1 = talloc_total_blocks(context->ev);
 
diff --git a/selftest/flapping.d/samba4.rpc.samr.passwords b/selftest/flapping.d/samba4.rpc.samr.passwords
deleted file mode 100644 (file)
index 85618be..0000000
+++ /dev/null
@@ -1 +0,0 @@
-^samba4.rpc.samr.passwords.lockout on ncacn_np with .samr.lockout\(ad_dc_slowtests\)