tests: IBSS RSN OOM during wpa_init

This is a regression test for a segfault that was fixed in the previous
commit.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-09-05 21:35:58 +03:00
parent 6f416c7867
commit 8aab52461d

View file

@ -11,6 +11,7 @@ import re
import subprocess
import hwsim_utils
from utils import alloc_fail
def connect_ibss_cmd(dev, id, freq=2412):
dev.dump_monitor()
@ -386,3 +387,11 @@ def _test_ibss_5ghz(dev):
dev[1].request("DISCONNECT")
dev[0].dump_monitor()
dev[1].dump_monitor()
def test_ibss_rsn_oom(dev):
"""IBSS RSN OOM during wpa_init"""
with alloc_fail(dev[0], 1, "wpa_init"):
ssid="ibss-rsn"
id = add_ibss_rsn(dev[0], ssid)
connect_ibss_cmd(dev[0], id)
bssid0 = wait_ibss_connection(dev[0])