Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | msgb/test: Add test case for error cases | Jacob Erlbeck | 2016-01-15 | 2 | -0/+24 |
| | | | | | | Include a test for msgb_trim. Sponsored-by: On-Waves ehf | ||||
* | msgb/test: Add tests for msgb_resize_area and msgb_copy | Jacob Erlbeck | 2016-01-15 | 2 | -0/+149 |
| | | | | Sponsored-by: On-Waves ehf | ||||
* | msgb/test: Add functions to catch and check exceptions | Jacob Erlbeck | 2016-01-15 | 1 | -0/+31 |
| | | | | | | | | | | | | | | | | 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 | ||||
* | msgb/test: Add test for msgb message buffers | Jacob Erlbeck | 2016-01-15 | 2 | -0/+125 |
This tests several API functions of the msgb by checking the invariant and by dumping resulting message buffers as hex. Sponsored-by: On-Waves ehf Conflicts: tests/Makefile.am |