]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: GET_CAPABILITY special cases
authorJouni Malinen <j@w1.fi>
Sat, 26 Apr 2014 18:44:23 +0000 (21:44 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 29 Apr 2014 12:05:18 +0000 (15:05 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_ctrl.py

index 979cc68e44406b8c04b503b1996155d7e7699f99..9dbd5125693c895f3da028518246122723d112c9 100644 (file)
@@ -691,6 +691,10 @@ def test_wpas_ctrl_set(dev):
 
 def test_wpas_ctrl_get_capability(dev):
     """wpa_supplicant ctrl_iface GET_CAPABILITY"""
+    if "FAIL" not in dev[0].request("GET_CAPABILITY 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"):
+        raise Exception("Unexpected success on invalid GET_CAPABILITY")
+    if "AP" not in dev[0].request("GET_CAPABILITY modes strict"):
+        raise Exception("Unexpected GET_CAPABILITY response")
     res = dev[0].get_capability("eap")
     if "TTLS" not in res:
         raise Exception("Unexpected GET_CAPABILITY eap response: " + str(res))