tests: Update authsrv_oom to match implementation changes

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2019-08-20 02:59:06 +03:00
parent 9ce3bfaf47
commit 0b39274ca3

View File

@ -145,11 +145,6 @@ def test_authsrv_oom(dev, apdev):
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.
authsrv.disable()
for count in range(1, 4):
with alloc_fail(authsrv, count,