diff options
author | Jouni Malinen <j@w1.fi> | 2015-09-07 13:46:58 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-09-07 13:47:08 +0300 |
commit | 07536b18ce90228083e28b2866eff2df5dda5453 (patch) | |
tree | af96849ae52669f5267a709286294cc2b82486a8 | |
parent | 4c355e3ed1acf5ac09983b5bada41e8170f80e28 (diff) | |
download | hostap-07536b18ce90228083e28b2866eff2df5dda5453.tar.gz |
tests: WPS ER init failure
Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r-- | tests/hwsim/test_ap_wps.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py index e82ae8332..9684a36ee 100644 --- a/tests/hwsim/test_ap_wps.py +++ b/tests/hwsim/test_ap_wps.py @@ -3419,6 +3419,12 @@ def _test_ap_wps_er_init_oom(dev, apdev): if "FAIL" not in dev[0].request("WPS_ER_START ifname=lo"): raise Exception("WPS_ER_START succeeded during os_get_random failure") +def test_ap_wps_er_init_fail(dev, apdev): + """WPS ER init failure""" + if "FAIL" not in dev[0].request("WPS_ER_START ifname=does-not-exist"): + dev[0].request("WPS_ER_STOP") + raise Exception("WPS_ER_START with non-existing ifname succeeded") + def test_ap_wps_wpa_cli_action(dev, apdev, test_params): """WPS events and wpa_cli action script""" logdir = os.path.abspath(test_params['logdir']) |