]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: hostapd global ctrl_iface DETACH failure
authorJouni Malinen <j@w1.fi>
Tue, 27 Dec 2016 22:38:51 +0000 (00:38 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 28 Dec 2016 12:31:43 +0000 (14:31 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_hapd_ctrl.py

index ff82b12604c044372dda98017b3ecaaaae8724c4..61b30203e43b8beeb55bc2af28105b2d40a0868a 100644 (file)
@@ -503,6 +503,9 @@ def test_hapd_ctrl_global(dev, apdev):
     if apdev[0]['ifname'] + " ctrl_iface=" not in res:
         raise Exception("AP interface missing from INTERFACES ctrl")
 
+    if "FAIL" not in hapd_global.request("DETACH"):
+        raise Exception("DETACH succeeded unexpectedly")
+
 def dup_network(hapd_global, src, dst, param):
     res = hapd_global.request("DUP_NETWORK %s %s %s" % (src, dst, param))
     if "OK" not in res: