From: Jouni Malinen Date: Sun, 19 Jul 2015 17:52:11 +0000 (+0300) Subject: tests: UUID parsing error cases X-Git-Tag: hostap_2_5~343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b0afb0a29d866d89a78864f26b07e19bbc0d8ed;p=thirdparty%2Fhostap.git tests: UUID parsing error cases Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 8fecf6084..39f29b00c 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -670,6 +670,19 @@ def test_wpas_ctrl_set_wps_params(dev): if "OK" not in dev[2].request("SET " + t): raise Exception("SET failed for: " + t) + ts = [ "uuid 12345678+9abc-def0-1234-56789abcdef0", + "uuid 12345678-qabc-def0-1234-56789abcdef0", + "uuid 12345678-9abc+def0-1234-56789abcdef0", + "uuid 12345678-9abc-qef0-1234-56789abcdef0", + "uuid 12345678-9abc-def0+1234-56789abcdef0", + "uuid 12345678-9abc-def0-q234-56789abcdef0", + "uuid 12345678-9abc-def0-1234+56789abcdef0", + "uuid 12345678-9abc-def0-1234-q6789abcdef0", + "uuid qwerty" ] + for t in ts: + if "FAIL" not in dev[2].request("SET " + t): + raise Exception("SET succeeded for: " + t) + def test_wpas_ctrl_level(dev): """wpa_supplicant ctrl_iface LEVEL""" try: