From: Jouni Malinen Date: Sat, 26 Apr 2014 18:44:23 +0000 (+0300) Subject: tests: GET_CAPABILITY special cases X-Git-Tag: hostap_2_2~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b102823ddcaf4ca259a008b2eefc7042a141780a;p=thirdparty%2Fhostap.git tests: GET_CAPABILITY special cases Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 979cc68e4..9dbd51256 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -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))