Skip to content

Commit

Permalink
tests/py-segfault: add messaging.deregister()
Browse files Browse the repository at this point in the history
Signed-off-by: Douglas Bagnall <[email protected]>
Reviewed-by: Gary Lockyer <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
douglasbagnall authored and abartlet committed Jul 22, 2019
1 parent c3a52e4 commit 3383390
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/samba/tests/segfault.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
from samba import netbios
from samba import registry
from samba import ldb
from samba import messaging

import traceback


def segfault_detector(f):
def wrapper(*args, **kwargs):
pid = os.fork()
Expand Down Expand Up @@ -146,3 +148,7 @@ def test_ldb_add_nameless_element(self):
@segfault_detector
def test_ldb_register_module(self):
ldb.register_module('')

@segfault_detector
def test_messaging_deregister(self):
messaging.deregister('s', 's', 's', False)

0 comments on commit 3383390

Please sign in to comment.