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>
This commit is contained in:
Jouni Malinen 2019-10-19 00:45:57 +03:00
parent f73dd0a692
commit 360d8d4e3c

View File

@ -1871,7 +1871,7 @@ def test_ap_ft_ap_oom4(dev, apdev):
if dev[0].get_status_field('bssid') != bssid1: if dev[0].get_status_field('bssid') != bssid1:
raise Exception("Did not roam to AP1") 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) dev[0].roam(bssid0)
if dev[0].get_status_field('bssid') != bssid0: if dev[0].get_status_field('bssid') != bssid0:
raise Exception("Did not roam to AP0") raise Exception("Did not roam to AP0")