]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Update authsrv_oom match changed implementation
authorJouni Malinen <j@w1.fi>
Sun, 18 Aug 2019 14:39:58 +0000 (17:39 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 18 Aug 2019 14:40:31 +0000 (17:40 +0300)
Need to take into account the additional memory allocation within
radius_server_init().

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

index bdd47bf98a0bd63bec5ec2ddba36215e8799eab2..4610e9f01764b36feb53e9e5082335ac43b28057 100644 (file)
@@ -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.