aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-08 15:24:12 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-08 15:24:12 (GMT)
commit3381d324c99790894dd6c1c06618f25d63231257 (patch)
tree234398e12f0220227b9d2f21d194cd4d4e95b5c0 /tests
parent765c15d5037a3d92644da1e322e26ce9a7786695 (diff)
downloadhostap-3381d324c99790894dd6c1c06618f25d63231257.zip
hostap-3381d324c99790894dd6c1c06618f25d63231257.tar.gz
hostap-3381d324c99790894dd6c1c06618f25d63231257.tar.bz2
tests: PIN generation failure
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_ap_wps.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/hwsim/test_ap_wps.py b/tests/hwsim/test_ap_wps.py
index 809a8ad..35bf27c 100644
--- a/tests/hwsim/test_ap_wps.py
+++ b/tests/hwsim/test_ap_wps.py
@@ -1,5 +1,5 @@
# WPS tests
-# Copyright (c) 2013-2015, Jouni Malinen <j@w1.fi>
+# Copyright (c) 2013-2017, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
@@ -2027,6 +2027,13 @@ def test_ap_wps_check_pin(dev, apdev):
if pin != rpin:
raise Exception("Random PIN validation failed for " + pin)
+def test_ap_wps_pin_get_failure(dev, apdev):
+ """PIN generation failure"""
+ with fail_test(dev[0], 1,
+ "os_get_random;wpa_supplicant_ctrl_iface_wps_pin"):
+ if "FAIL" not in dev[0].request("WPS_PIN get"):
+ raise Exception("WPS_PIN did not report failure")
+
def test_ap_wps_wep_config(dev, apdev):
"""WPS 2.0 AP rejecting WEP configuration"""
ssid = "test-wps-config"