tests: WPS and fragment ack OOM

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-12-05 21:35:45 +02:00
parent 7b991b47eb
commit d1341917ce

View file

@ -9238,3 +9238,10 @@ def test_ap_wps_upnp_web_oom(dev, apdev, params):
resp = conn.getresponse() resp = conn.getresponse()
except: except:
pass pass
def test_ap_wps_frag_ack_oom(dev, apdev):
"""WPS and fragment ack OOM"""
dev[0].request("SET wps_fragment_size 50")
hapd = wps_start_ap(apdev[0])
with alloc_fail(hapd, 1, "eap_wsc_build_frag_ack"):
wps_run_pbc_fail_ap(apdev[0], dev[0], hapd)