aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-01-06 18:01:59 (GMT)
committerJouni Malinen <j@w1.fi>2016-01-06 18:01:59 (GMT)
commit79a3973c957a2600587fe2631696c9063f80035f (patch)
tree8295226e2c46044bfc56dde1074ba46feedf769f /tests
parent8251be17bece5bbfbc0c6d4d6a0ff74dc6a69f78 (diff)
downloadhostap-79a3973c957a2600587fe2631696c9063f80035f.zip
hostap-79a3973c957a2600587fe2631696c9063f80035f.tar.gz
hostap-79a3973c957a2600587fe2631696c9063f80035f.tar.bz2
tests: WPA2-Enterprise connection using EAP vendor test (OOM)
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_ap_eap.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py
index 71fb660..dd53ef3 100644
--- a/tests/hwsim/test_ap_eap.py
+++ b/tests/hwsim/test_ap_eap.py
@@ -2536,6 +2536,24 @@ def test_ap_wpa2_eap_vendor_test(dev, apdev):
eap_connect(dev[1], apdev[0], "VENDOR-TEST", "vendor-test",
password="pending")
+def test_ap_wpa2_eap_vendor_test_oom(dev, apdev):
+ """WPA2-Enterprise connection using EAP vendor test (OOM)"""
+ params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
+ hostapd.add_ap(apdev[0]['ifname'], params)
+
+ tests = [ "eap_vendor_test_init",
+ "eap_msg_alloc;eap_vendor_test_process",
+ "eap_vendor_test_getKey" ]
+ for func in tests:
+ with alloc_fail(dev[0], 1, func):
+ dev[0].connect("test-wpa2-eap", key_mgmt="WPA-EAP",
+ scan_freq="2412",
+ eap="VENDOR-TEST", identity="vendor-test",
+ wait_connect=False)
+ wait_fail_trigger(dev[0], "GET_ALLOC_FAIL")
+ dev[0].request("REMOVE_NETWORK all")
+ dev[0].wait_disconnected()
+
def test_ap_wpa2_eap_fast_mschapv2_unauth_prov(dev, apdev):
"""WPA2-Enterprise connection using EAP-FAST/MSCHAPv2 and unauthenticated provisioning"""
check_eap_capa(dev[0], "FAST")