]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Fix FST cleanup if alloc_fail is not supported
authorJouni Malinen <j@w1.fi>
Sat, 26 Mar 2016 20:51:32 +0000 (22:51 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 26 Mar 2016 20:53:58 +0000 (22:53 +0200)
commit07a1e904874a5c7e53273e5093265746516ef84f
treed72e99e6f524cc2ce7fda8350034358091cfc583
parent87faf1f22cbae40491278257ce575bfc22e84f4e
tests: Fix FST cleanup if alloc_fail is not supported

The test cases fst_ap_start_session_oom and fst_setup_mbie_diff did not
clean up FST sessions properly in case alloc_fail failed due to missing
support for it in the build. This could result in abandoning attached
hostapd global control interface monitors and test case failures due to
the global control interface socket running out of output buffer.

Fix this by going through the cleanup steps even if alloc_fail raises
HwsimSkip exception.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_fst_module.py