From: Jouni Malinen Date: Sat, 26 Apr 2014 18:16:36 +0000 (+0300) Subject: tests: SELECT/ENABLE/DISABLE/REMOVE_NETWORK failure cases X-Git-Tag: hostap_2_2~205 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edb69bd6225c4b8408990079c4c18ce062b5fb77;p=thirdparty%2Fhostap.git tests: SELECT/ENABLE/DISABLE/REMOVE_NETWORK failure cases Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_p2p_persistent.py b/tests/hwsim/test_p2p_persistent.py index 6a75e6d45..57894f62b 100644 --- a/tests/hwsim/test_p2p_persistent.py +++ b/tests/hwsim/test_p2p_persistent.py @@ -117,6 +117,20 @@ def test_persistent_group(dev): clients = dev[0].request("GET_NETWORK " + id + " p2p_client_list").rstrip() if dev[1].p2p_dev_addr() not in clients: raise Exception("Peer missing from client list") + if "FAIL" not in dev[1].request("SELECT_NETWORK " + str(id)): + raise Exception("SELECT_NETWORK succeeded unexpectedly") + if "FAIL" not in dev[1].request("SELECT_NETWORK 1234567"): + raise Exception("SELECT_NETWORK succeeded unexpectedly(2)") + if "FAIL" not in dev[1].request("ENABLE_NETWORK " + str(id)): + raise Exception("ENABLE_NETWORK succeeded unexpectedly") + if "FAIL" not in dev[1].request("ENABLE_NETWORK 1234567"): + raise Exception("ENABLE_NETWORK succeeded unexpectedly(2)") + if "FAIL" not in dev[1].request("DISABLE_NETWORK " + str(id)): + raise Exception("DISABLE_NETWORK succeeded unexpectedly") + if "FAIL" not in dev[1].request("DISABLE_NETWORK 1234567"): + raise Exception("DISABLE_NETWORK succeeded unexpectedly(2)") + if "FAIL" not in dev[1].request("REMOVE_NETWORK 1234567"): + raise Exception("REMOVE_NETWORK succeeded unexpectedly") dev[1].request("REMOVE_NETWORK all") if len(dev[1].list_networks()) > 0: raise Exception("Unexpected network block remaining")