summaryrefslogtreecommitdiff
path: root/test/ua.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2015-10-10 21:17:00 +0200
committerAlfred E. Heggestad <aeh@db.org>2015-10-10 21:17:00 +0200
commit399dc2bc0c07fbe904742a1f109142be70ab4a56 (patch)
treee6a75601521ffb78cd6680be6590c3372a463dbd /test/ua.c
parentdf805d411841359d52f553fe2cf38447399fceaa (diff)
test: run all testcases from an array of tests
Diffstat (limited to 'test/ua.c')
-rw-r--r--test/ua.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ua.c b/test/ua.c
index 80fd3a4..a7e3154 100644
--- a/test/ua.c
+++ b/test/ua.c
@@ -13,7 +13,7 @@ struct test {
struct sip_server *srv;
struct ua *ua;
int err;
- bool got_register_ok;
+ unsigned got_register_ok;
};
@@ -32,7 +32,7 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev,
if (ev == UA_EVENT_REGISTER_OK) {
- t->got_register_ok = true;
+ ++t->got_register_ok;
/* verify register success */
ASSERT_TRUE(ua_isregistered(t->ua));
@@ -84,7 +84,7 @@ static int reg(enum sip_transp tp)
ASSERT_TRUE(t.srv->n_register_req > 0);
ASSERT_EQ(tp, t.srv->tp_last);
- ASSERT_TRUE(t.got_register_ok);
+ ASSERT_TRUE(t.got_register_ok > 0);
out:
if (err) {