aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2019-10-18 21:45:57 (GMT)
committerJouni Malinen <j@w1.fi>2019-10-18 21:45:57 (GMT)
commit360d8d4e3c7dae8c760c65ee9fc88bb140ae3978 (patch)
tree1ff14ee36d6a0e10a8ca399544aac3f8405aa774
parentf73dd0a692e588ee8dc9d3ae583b8065f60bfedc (diff)
downloadhostap-360d8d4e3c7dae8c760c65ee9fc88bb140ae3978.zip
hostap-360d8d4e3c7dae8c760c65ee9fc88bb140ae3978.tar.gz
hostap-360d8d4e3c7dae8c760c65ee9fc88bb140ae3978.tar.bz2
tests: Make ap_ft_ap_oom4 more robust against compiler optimizations
It looks like the wpa_auth_get_seqnum() function might not always be visible in the backtrace since the compiler may optimize that wrapper away. Use the i802_get_seqnum() function instead as a trigger for the get_seqnum operation failure trigger to avoid this. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--tests/hwsim/test_ap_ft.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hwsim/test_ap_ft.py b/tests/hwsim/test_ap_ft.py
index cc79ea3..66ca8cf 100644
--- a/tests/hwsim/test_ap_ft.py
+++ b/tests/hwsim/test_ap_ft.py
@@ -1871,7 +1871,7 @@ def test_ap_ft_ap_oom4(dev, apdev):
if dev[0].get_status_field('bssid') != bssid1:
raise Exception("Did not roam to AP1")
- with fail_test(hapd0, 1, "wpa_auth_get_seqnum;wpa_ft_gtk_subelem"):
+ with fail_test(hapd0, 1, "i802_get_seqnum;wpa_ft_gtk_subelem"):
dev[0].roam(bssid0)
if dev[0].get_status_field('bssid') != bssid0:
raise Exception("Did not roam to AP0")