From 8aab52461d47ca9b1a9bb20b212a28f852bff822 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 5 Sep 2015 21:35:58 +0300 Subject: [PATCH] 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 --- tests/hwsim/test_ibss.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/hwsim/test_ibss.py b/tests/hwsim/test_ibss.py index ae1294b3a..59faa8c46 100644 --- a/tests/hwsim/test_ibss.py +++ b/tests/hwsim/test_ibss.py @@ -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])