diff options
author | Benny Prijono <bennylp@teluu.com> | 2005-11-08 12:46:10 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2005-11-08 12:46:10 +0000 |
commit | fb9e3b3a6649cc5cbe0c6747cb1918f3be71ba06 (patch) | |
tree | c17860d77bc3852963ba833ce386ddda970886c8 /pjlib/src/pjlib-test | |
parent | a38eeb6a5f4a91e007c61e5b2a0c9b2715c13edf (diff) |
Linux alpha test
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@35 74dad513-b988-da41-8d7b-12977e46ad98
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; |