From 5b0afb0a29d866d89a78864f26b07e19bbc0d8ed Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 19 Jul 2015 20:52:11 +0300 Subject: [PATCH] tests: UUID parsing error cases Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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: