diff options
author | Katerina Barone-Adesi <kat.obsc@gmail.com> | 2013-03-03 10:36:52 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-09 23:52:29 +0100 |
commit | 008e53baaeba1aaf126b11b5c211a1110e9dc087 (patch) | |
tree | e9929aeed60d619420ca59a3640cc8130f681301 /tests/loggingrb | |
parent | 45cdaa095a0e2fe9558de682e1c12229dfab9adc (diff) |
utils: Introduce OSMO_ASSERT in the utils and use it in the unit tests
The tests should unconditionally assert, regardless of debug settings.
This uses the OSMO_ prefix as it's in the global namespace.
Diffstat (limited to 'tests/loggingrb')
-rw-r--r-- | tests/loggingrb/loggingrb_test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/loggingrb/loggingrb_test.c b/tests/loggingrb/loggingrb_test.c index 1ab5212d..9957b536 100644 --- a/tests/loggingrb/loggingrb_test.c +++ b/tests/loggingrb/loggingrb_test.c @@ -18,7 +18,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ -#include <assert.h> #include <osmocom/core/logging.h> #include <osmocom/core/utils.h> @@ -77,7 +76,7 @@ int main(int argc, char **argv) DEBUGP(DMM, "You should not see this\n"); fprintf(stderr, ringbuffer_get_nth(ringbuf_target->tgt_rbvty.rb, 0)); fprintf(stderr, ringbuffer_get_nth(ringbuf_target->tgt_rbvty.rb, 1)); - assert(!ringbuffer_get_nth(ringbuf_target->tgt_rbvty.rb, 2)); + OSMO_ASSERT(!ringbuffer_get_nth(ringbuf_target->tgt_rbvty.rb, 2)); return 0; } |