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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-11-29 20:43:44 +02:00
parent c675f669c3
commit c5ef7bbfa5

View file

@ -1723,8 +1723,6 @@ def _test_wpas_ctrl_oom(dev):
3, 'wpas_ctrl_nfc_get_handover_sel_p2p'), 3, 'wpas_ctrl_nfc_get_handover_sel_p2p'),
('NFC_GET_HANDOVER_SEL NDEF P2P-CR', 'FAIL', ('NFC_GET_HANDOVER_SEL NDEF P2P-CR', 'FAIL',
3, 'wpas_ctrl_nfc_get_handover_sel_p2p'), 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', ('NFC_GET_HANDOVER_SEL NDEF P2P-CR', 'FAIL',
4, 'wpas_ctrl_nfc_get_handover_sel_p2p'), 4, 'wpas_ctrl_nfc_get_handover_sel_p2p'),
('P2P_ASP_PROVISION_RESP 00:11:22:33:44:55 id=1', 'FAIL', ('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'), 1, 'wpa_supplicant_ctrl_iface_autoscan'),
('PING', None, ('PING', None,
1, 'wpa_supplicant_ctrl_iface_process') ] 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: for cmd,exp,count,func in tests:
with alloc_fail(dev[0], count, func): with alloc_fail(dev[0], count, func):
res = dev[0].request(cmd) res = dev[0].request(cmd)