From: Jouni Malinen Date: Sat, 4 Feb 2017 20:46:06 +0000 (+0200) Subject: tests: Update mesh_oom to match the wpa_supplicant_mesh_init() change X-Git-Tag: hostap_2_7~1679 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e6cc3288c8360e3dc102dc78996c36ecabce0b2;p=thirdparty%2Fhostap.git tests: Update mesh_oom to match the wpa_supplicant_mesh_init() change There is now one fewer direct allocation call in this function, so the counters need to be updated to avoid test failures. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_mesh.py b/tests/hwsim/test_wpas_mesh.py index d9648e740..f632ffdb9 100644 --- a/tests/hwsim/test_wpas_mesh.py +++ b/tests/hwsim/test_wpas_mesh.py @@ -1551,7 +1551,7 @@ def test_mesh_oom(dev, apdev): if ev is None: raise Exception("Init failure not reported") - with alloc_fail(dev[0], 4, "=wpa_supplicant_mesh_init"): + with alloc_fail(dev[0], 3, "=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: @@ -1573,7 +1573,7 @@ def test_mesh_oom(dev, apdev): raise logger.info("Ignore no-oom for i=%d" % i) - with alloc_fail(dev[0], 5, "=wpa_supplicant_mesh_init"): + with alloc_fail(dev[0], 4, "=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"])