From f157078c13142b3068f84ce9b1f3ada5ecb6ea12 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 12 Dec 2014 19:08:24 +0200 Subject: [PATCH] tests: DRIVER_EVENT failure case Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index 9b3e04ced..1a3edb52f 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -1149,3 +1149,8 @@ def test_wpas_ctrl_mgmt_tx(dev, apdev): if "OK" not in dev[0].request("MGMT_TX_DONE"): raise Exception("MGMT_TX_DONE failed") + +def test_wpas_ctrl_driver_event(dev, apdev): + """wpa_supplicant ctrl_iface DRIVER_EVENT""" + if "FAIL" not in dev[0].request("DRIVER_EVENT foo"): + raise Exception("Invalid DRIVER_EVENT accepted")