aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-11-27 13:26:17 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-01-15 18:10:05 +0100
commitcbefa085593128c5f5e6da255edeae6b4f952032 (patch)
tree7e3f410db92986341128511a431cef104e28e335 /src
parent7cd8a1b06387427c6db4fd9f6dee116212ec304a (diff)
msgb/test: Add functions to catch and check exceptions
Currently the msgb error handling cannot be fully tested, since in many cases osmo_panic will be called. This will in turn call abort(). Using an osmo_panic_handler that just returns will not help, since many msgb functions rely on MSGB_ABORT to not return at all. This commit uses an alternative osmo_panic_raise handler that just calls longjmp to return to the test function. Since some of this activity is logged to stderr where the strings may contain variable parts like pointer addresses, stderr checking is disabled in testsuite.at. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions