From c5ef7bbfa526df9cd31c9befd001cf1b2af2b2c1 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 29 Nov 2015 20:43:44 +0200 Subject: [PATCH] tests: Fix wpas_ctrl_oom with the internal TLS implementation One of the OOM cases does not apply for internal crypto implementation. Signed-off-by: Jouni Malinen --- tests/hwsim/test_wpas_ctrl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/hwsim/test_wpas_ctrl.py b/tests/hwsim/test_wpas_ctrl.py index df6d20dab..5395d3fc9 100644 --- a/tests/hwsim/test_wpas_ctrl.py +++ b/tests/hwsim/test_wpas_ctrl.py @@ -1723,8 +1723,6 @@ def _test_wpas_ctrl_oom(dev): 3, 'wpas_ctrl_nfc_get_handover_sel_p2p'), ('NFC_GET_HANDOVER_SEL NDEF P2P-CR', 'FAIL', 3, 'wpas_ctrl_nfc_get_handover_sel_p2p'), - ('NFC_GET_HANDOVER_SEL NDEF P2P-CR-TAG', 'FAIL', - 4, 'wpas_ctrl_nfc_get_handover_sel_p2p'), ('NFC_GET_HANDOVER_SEL NDEF P2P-CR', 'FAIL', 4, 'wpas_ctrl_nfc_get_handover_sel_p2p'), ('P2P_ASP_PROVISION_RESP 00:11:22:33:44:55 id=1', 'FAIL', @@ -1779,6 +1777,10 @@ def _test_wpas_ctrl_oom(dev): 1, 'wpa_supplicant_ctrl_iface_autoscan'), ('PING', None, 1, 'wpa_supplicant_ctrl_iface_process') ] + tls = dev[0].request("GET tls_library") + if not tls.startswith("internal"): + tests.append(('NFC_GET_HANDOVER_SEL NDEF P2P-CR-TAG', 'FAIL', + 4, 'wpas_ctrl_nfc_get_handover_sel_p2p')) for cmd,exp,count,func in tests: with alloc_fail(dev[0], count, func): res = dev[0].request(cmd)