From: Jouni Malinen Date: Sat, 18 Jul 2015 08:13:20 +0000 (+0300) Subject: tests: FST-ATTACH OOM in fst_iface_create() X-Git-Tag: hostap_2_5~365 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a248e29dac7e55c10f1c382a7616a01dcd97bc9a;p=thirdparty%2Fhostap.git tests: FST-ATTACH OOM in fst_iface_create() Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_fst_module.py b/tests/hwsim/test_fst_module.py index 045e1f514..2754d13eb 100644 --- a/tests/hwsim/test_fst_module.py +++ b/tests/hwsim/test_fst_module.py @@ -1938,6 +1938,11 @@ def test_fst_ap_config_oom(dev, apdev, test_params): if not res.startswith("FAIL"): raise Exception("FST-ATTACH succeeded unexpectedly") + with alloc_fail(hapd, 1, "fst_iface_create"): + res = ap1.grequest("FST-ATTACH %s %s" % (ap1.iface, ap1.fst_group)) + if not res.startswith("FAIL"): + raise Exception("FST-ATTACH succeeded unexpectedly") + with alloc_fail(hapd, 1, "fst_group_create_mb_ie"): res = ap1.grequest("FST-ATTACH %s %s" % (ap1.iface, ap1.fst_group)) # This is allowed to complete currently