aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-05-29 22:50:09 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-29 22:50:09 (GMT)
commitaa59370b34a103eb440f37a6ed14e8911d2c8461 (patch)
tree25ac70f0429dc17829b893133bd7d54b915b720d /tests
parent62fc8e6a40778f7ddec3155682b0621780000177 (diff)
downloadhostap-aa59370b34a103eb440f37a6ed14e8911d2c8461.zip
hostap-aa59370b34a103eb440f37a6ed14e8911d2c8461.tar.gz
hostap-aa59370b34a103eb440f37a6ed14e8911d2c8461.tar.bz2
tests: wpa_supplicant mesh with dynamic interface addition failing
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_wpas_mesh.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py
index 9c34727..17668e7 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)