From: Jouni Malinen Date: Fri, 18 Oct 2019 21:45:57 +0000 (+0300) Subject: tests: Make ap_ft_ap_oom4 more robust against compiler optimizations X-Git-Tag: hostap_2_10~2258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=360d8d4e3c7dae8c760c65ee9fc88bb140ae3978;p=thirdparty%2Fhostap.git 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 --- diff --git a/tests/hwsim/test_ap_ft.py b/tests/hwsim/test_ap_ft.py index cc79ea308..66ca8cf66 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")