diff options
Diffstat (limited to 'pjlib/src/pjlib-test')
-rw-r--r-- | pjlib/src/pjlib-test/exception.c | 3 | ||||
-rw-r--r-- | pjlib/src/pjlib-test/list.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/pjlib/src/pjlib-test/exception.c b/pjlib/src/pjlib-test/exception.c index fcbe098c..31a4a545 100644 --- a/pjlib/src/pjlib-test/exception.c +++ b/pjlib/src/pjlib-test/exception.c @@ -83,6 +83,9 @@ static int test(void) if (!rc) rc = 0; } PJ_DEFAULT { + int id = PJ_GET_EXCEPTION(); + PJ_LOG(3,("", "...error: got unexpected exception %d (%s)", + id, pj_exception_id_name(id))); if (!rc) rc = -20; } PJ_END; diff --git a/pjlib/src/pjlib-test/list.c b/pjlib/src/pjlib-test/list.c index d9f097c5..4184e801 100644 --- a/pjlib/src/pjlib-test/list.c +++ b/pjlib/src/pjlib-test/list.c @@ -40,7 +40,7 @@ typedef struct list_node static int compare_node(void *value, const pj_list_type *nd) { list_node *node = (list_node*)nd; - return ((int)value == node->value) ? 0 : -1; + return ((long)value == node->value) ? 0 : -1; } #define PJ_SIGNED_ARRAY_SIZE(a) ((int)PJ_ARRAY_SIZE(a)) @@ -190,7 +190,7 @@ int list_test() if (p != &nodes[i]) { return -1; } - p = (list_node*) pj_list_search(&list, (void*)i, &compare_node); + p = (list_node*) pj_list_search(&list, (void*)(long)i, &compare_node); pj_assert( p == &nodes[i] ); if (p != &nodes[i]) { return -1; |