aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testsuite.at
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 /tests/testsuite.at
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 'tests/testsuite.at')
-rw-r--r--tests/testsuite.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index d9bd3236..9cda1de0 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -36,7 +36,7 @@ AT_CLEANUP
AT_SETUP([msgb])
AT_KEYWORDS([msgb])
cat $abs_srcdir/msgb/msgb_test.ok > expout
-AT_CHECK([$abs_top_builddir/tests/msgb/msgb_test], [0], [expout])
+AT_CHECK([$abs_top_builddir/tests/msgb/msgb_test], [0], [expout], [ignore])
AT_CLEANUP
if ENABLE_MSGFILE