Browse Source

tests: FST-MANAGER SESSION_ADD OOM

Signed-off-by: Jouni Malinen <j@w1.fi>
Jouni Malinen 9 years ago
parent
commit
feb64551d9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/hwsim/test_fst_module.py

+ 4 - 0
tests/hwsim/test_fst_module.py

@@ -2010,6 +2010,10 @@ def test_fst_session_oom(dev, apdev, test_params):
         resp_newif = sta2.ifname()
         peeraddr = None
         initiator.add_peer(responder, peeraddr, new_peer_addr)
+        with alloc_fail(hapd, 1, "fst_session_create"):
+            sid = initiator.grequest("FST-MANAGER SESSION_ADD " + initiator.fst_group)
+            if not sid.startswith("FAIL"):
+                raise Exception("Unexpected SESSION_ADD success")
         sid = initiator.add_session()
         initiator.configure_session(sid, new_iface)
         with alloc_fail(sta, 1, "fst_session_create"):