]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Make ap_ft_ap_oom4 more robust against compiler optimizations
authorJouni Malinen <j@w1.fi>
Fri, 18 Oct 2019 21:45:57 +0000 (00:45 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 18 Oct 2019 21:45:57 +0000 (00:45 +0300)
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>
tests/hwsim/test_ap_ft.py

index cc79ea30896e2329d3da2fd8f8b8c46d3936b121..66ca8cf660faa541e5eebb4cf35d0b47d71730da 100644 (file)
@@ -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")