This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "An utility library for Open Source Mobile Communications".
The branch, master has been updated
via 17b3c3aca1290a3f2c20a0858d4d499a17752ced (commit)
via ff42b26520a7421a6c6c9c9cd4b88aed00453b01 (commit)
via 0a053ec50657ea2060a1c4b8a8e811c5027ada7d (commit)
via cbefa085593128c5f5e6da255edeae6b4f952032 (commit)
via 7cd8a1b06387427c6db4fd9f6dee116212ec304a (commit)
from 5f349be820b32a5bb312566a4a35ef679fe7e478 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cgit.osmocom.org/libosmocore/commit/?id=17b3c3aca1290a3f2c20a0858d4d…
commit 17b3c3aca1290a3f2c20a0858d4d499a17752ced
Author: Jacob Erlbeck <jerlbeck(a)sysmocom.de>
Date: Fri Nov 27 13:26:20 2015 +0100
msgb/test: Add test case for error cases
Include a test for msgb_trim.
Sponsored-by: On-Waves ehf
http://cgit.osmocom.org/libosmocore/commit/?id=ff42b26520a7421a6c6c9c9cd4b8…
commit ff42b26520a7421a6c6c9c9cd4b88aed00453b01
Author: Jacob Erlbeck <jerlbeck(a)sysmocom.de>
Date: Fri Nov 27 13:26:19 2015 +0100
msgb: Assert len >= 0 in msgb_trim
Currently msgb_trim only checks for len > data_len and returns -1
in that case, allowing the caller to fix it somehow. Using a negative
length will always lead to a corrupt msgb, but this is not being
checked.
This commit adds a check for len < 0 and a conditional call to MSGB_ABORT.
Sponsored-by: On-Waves ehf
http://cgit.osmocom.org/libosmocore/commit/?id=0a053ec50657ea2060a1c4b8a8e8…
commit 0a053ec50657ea2060a1c4b8a8e811c5027ada7d
Author: Jacob Erlbeck <jerlbeck(a)sysmocom.de>
Date: Fri Nov 27 13:26:18 2015 +0100
msgb/test: Add tests for msgb_resize_area and msgb_copy
Sponsored-by: On-Waves ehf
http://cgit.osmocom.org/libosmocore/commit/?id=cbefa085593128c5f5e6da255ede…
commit cbefa085593128c5f5e6da255edeae6b4f952032
Author: Jacob Erlbeck <jerlbeck(a)sysmocom.de>
Date: Fri Nov 27 13:26:17 2015 +0100
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
http://cgit.osmocom.org/libosmocore/commit/?id=7cd8a1b06387427c6db4fd9f6dee…
commit 7cd8a1b06387427c6db4fd9f6dee116212ec304a
Author: Jacob Erlbeck <jerlbeck(a)sysmocom.de>
Date: Fri Nov 27 13:26:16 2015 +0100
msgb/test: Add test for msgb message buffers
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
-----------------------------------------------------------------------
Summary of changes:
include/osmocom/core/msgb.h | 2 +
tests/Makefile.am | 7 +-
tests/msgb/msgb_test.c | 294 ++++++++++++++++++++++++++++++++++++++++++++
tests/msgb/msgb_test.ok | 35 ++++++
tests/testsuite.at | 6 +
5 files changed, 342 insertions(+), 2 deletions(-)
create mode 100644 tests/msgb/msgb_test.c
create mode 100644 tests/msgb/msgb_test.ok
hooks/post-receive
--
An utility library for Open Source Mobile Communications