]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Update mesh_oom to match implementation change
authorJouni Malinen <j@w1.fi>
Thu, 31 May 2018 13:13:58 +0000 (16:13 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 31 May 2018 13:14:28 +0000 (16:14 +0300)
The initial direct allocation within wpa_supplicant_mesh_init() was
removed.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_mesh.py

index bf10645b0871536e412a45cc61675239059c0176..5feb9bee521766749e133940cf05cedfb1ed5e1f 100644 (file)
@@ -1642,7 +1642,7 @@ def test_mesh_oom(dev, apdev):
         if ev is None:
             raise Exception("Init failure not reported")
 
-    with alloc_fail(dev[0], 3, "=wpa_supplicant_mesh_init"):
+    with alloc_fail(dev[0], 2, "=wpa_supplicant_mesh_init"):
         add_open_mesh_network(dev[0], basic_rates="60 120 240")
         ev = dev[0].wait_event(["Failed to init mesh"])
         if ev is None:
@@ -1664,7 +1664,7 @@ def test_mesh_oom(dev, apdev):
                 raise
             logger.info("Ignore no-oom for i=%d" % i)
 
-    with alloc_fail(dev[0], 4, "=wpa_supplicant_mesh_init"):
+    with alloc_fail(dev[0], 3, "=wpa_supplicant_mesh_init"):
         id = add_mesh_secure_net(dev[0])
         dev[0].mesh_group_add(id)
         ev = dev[0].wait_event(["Failed to init mesh"])