]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: UUID parsing error cases
authorJouni Malinen <j@w1.fi>
Sun, 19 Jul 2015 17:52:11 +0000 (20:52 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 19 Jul 2015 19:04:50 +0000 (22:04 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_wpas_ctrl.py

index 8fecf6084609a684e95a038a0838af2e9d9a42aa..39f29b00cb26970c61e5580c7d4077bb627bb264 100644 (file)
@@ -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: