From 360d8d4e3c7dae8c760c65ee9fc88bb140ae3978 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 19 Oct 2019 00:45:57 +0300 Subject: [PATCH] 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 --- tests/hwsim/test_ap_ft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")