From f4d66e7b3cb20b52d6d37cc07c71866517b5f308 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 28 Dec 2016 00:30:41 +0200 Subject: [PATCH] tests: hostapd and TEST_ALLOC_FAIL/TEST_FAIL Signed-off-by: Jouni Malinen --- tests/hwsim/test_hapd_ctrl.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/hwsim/test_hapd_ctrl.py b/tests/hwsim/test_hapd_ctrl.py index 9915f16d1..ff82b1260 100644 --- a/tests/hwsim/test_hapd_ctrl.py +++ b/tests/hwsim/test_hapd_ctrl.py @@ -905,3 +905,13 @@ def test_hapd_ctrl_update_beacon(dev, apdev): if "FAIL" not in hapd.request("UPDATE_BEACON"): raise Exception("UPDATE_BEACON succeeded unexpectedly") dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412") + +def test_hapd_ctrl_test_fail(dev, apdev): + """hostapd and TEST_ALLOC_FAIL/TEST_FAIL""" + ssid = "hapd-ctrl" + params = { "ssid": ssid } + hapd = hostapd.add_ap(apdev[0], params) + if "OK" not in hapd.request("TEST_ALLOC_FAIL "): + raise Exception("TEST_ALLOC_FAIL clearing failed") + if "OK" not in hapd.request("TEST_FAIL "): + raise Exception("TEST_FAIL clearing failed")