From: Jouni Malinen Date: Sun, 18 Aug 2019 14:39:58 +0000 (+0300) Subject: tests: Update authsrv_oom match changed implementation X-Git-Tag: hostap_2_10~2436 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0bcd9839bfd6fc21ecd386f197331b98b42de84f;p=thirdparty%2Fhostap.git tests: Update authsrv_oom match changed implementation Need to take into account the additional memory allocation within radius_server_init(). Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_authsrv.py b/tests/hwsim/test_authsrv.py index bdd47bf98..4610e9f01 100644 --- a/tests/hwsim/test_authsrv.py +++ b/tests/hwsim/test_authsrv.py @@ -143,6 +143,9 @@ def test_authsrv_oom(dev, apdev): if "FAIL" not in authsrv.request("ENABLE"): raise Exception("ENABLE succeeded during OOM") with alloc_fail(authsrv, 2, "radius_server_init;hostapd_setup_radius_srv"): + if "FAIL" not in authsrv.request("ENABLE"): + raise Exception("ENABLE succeeded during OOM") + with alloc_fail(authsrv, 3, "radius_server_init;hostapd_setup_radius_srv"): authsrv.request("ENABLE") # This is actually allowed to continue even though memory allocation # fails.