aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-07 10:12:22 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-07 10:12:22 (GMT)
commit64dbe6a78d3eaec563593d5aadaa4a6ebe25d9f6 (patch)
tree1c528aee41daa2c8919c5a5f7a1eef2f17430fb1 /tests
parentf2058f4afa1e9279633cc0fc4e472b57812794d0 (diff)
downloadhostap-64dbe6a78d3eaec563593d5aadaa4a6ebe25d9f6.zip
hostap-64dbe6a78d3eaec563593d5aadaa4a6ebe25d9f6.tar.gz
hostap-64dbe6a78d3eaec563593d5aadaa4a6ebe25d9f6.tar.bz2
tests: Prepare rrm_beacon_req_passive_no_match_oom for code change
Replace the TEST_ALLOC function wpas_beacon_rep_no_results with an earlier function in the backtrace and wpabuf_resize() in preparation to a code change that allows the compiler to optimize out wpas_beacon_rep_no_results(). Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'tests')
-rw-r--r--tests/hwsim/test_rrm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hwsim/test_rrm.py b/tests/hwsim/test_rrm.py
index 9bea272..c328552 100644
--- a/tests/hwsim/test_rrm.py
+++ b/tests/hwsim/test_rrm.py
@@ -1257,7 +1257,7 @@ def test_rrm_beacon_req_passive_no_match_oom(dev, apdev):
dev[0].connect("rrm", key_mgmt="NONE", scan_freq="2412")
addr = dev[0].own_addr()
- with alloc_fail(dev[0], 1, "wpas_beacon_rep_no_results"):
+ with alloc_fail(dev[0], 1, "wpabuf_resize;wpas_beacon_rep_scan_process"):
token = run_req_beacon(hapd, addr, "51010000640000021122334455")
wait_fail_trigger(dev[0], "GET_ALLOC_FAIL")
ev = hapd.wait_event(["BEACON-RESP-RX"], timeout=0.2)