From: Jouni Malinen Date: Sun, 29 May 2016 22:50:09 +0000 (+0300) Subject: tests: wpa_supplicant mesh with dynamic interface addition failing X-Git-Tag: hostap_2_6~439 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa59370b34a103eb440f37a6ed14e8911d2c8461;p=thirdparty%2Fhostap.git tests: wpa_supplicant mesh with dynamic interface addition failing Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py index 9c34727f5..17668e740 100644 --- a/tests/hwsim/test_wpas_mesh.py +++ b/tests/hwsim/test_wpas_mesh.py @@ -968,3 +968,15 @@ def test_mesh_oom(dev, apdev): "MESH-GROUP-STARTED"]) if ev is None: raise Exception("Init failure not reported") + +def test_mesh_add_interface_oom(dev): + """wpa_supplicant mesh with dynamic interface addition failing""" + check_mesh_support(dev[0]) + for i in range(1, 3): + mesh = None + try: + with alloc_fail(dev[0], i, "wpas_mesh_add_interface"): + mesh = dev[0].request("MESH_INTERFACE_ADD").strip() + finally: + if mesh and mesh != "FAIL": + dev[0].request("MESH_GROUP_REMOVE " + mesh)