Commit 9c10e277 authored by Pekka Pessi's avatar Pekka Pessi

Silenced test run.

Disabled debug output from nua functions getting invalid input during test
run.

darcs-hash:20051007182045-65a35-067c2bb6092ef98bebc7a16bc37ae6aae60ecbb0.gz
parent 6321c27f
......@@ -687,7 +687,7 @@ void nua_get_params(nua_t *nua, tag_type_t tag, tag_value_t value, ...)
ta_end(ta); \
} \
else { \
su_log("nua: " #event " with invalid handle %p\n", nh); \
SU_DEBUG_1(("nua: " #event " with invalid handle %p\n", nh)); \
}
......@@ -1283,7 +1283,7 @@ void nua_respond(nua_handle_t *nh,
ta_end(ta);
}
else {
su_log("nua: respond with invalid handle %p\n", nh);
SU_DEBUG_1(("nua: respond with invalid handle %p\n", nh));
}
}
......
......@@ -150,9 +150,15 @@ int test_api_errors(struct context *ctx)
{
BEGIN();
/* Invoke every API function with (invalid) arguments */
/* Invoke every API function with invalid arguments */
/* su_log_redirect(su_log_default, nolog, stderr); */
int level;
su_log_init(nua_log);
level = nua_log->log_level;
if (!(tstflags & tst_verbatim))
su_log_set_level(nua_log, 0);
TEST_1(!nua_create(NULL, NULL, NULL, TAG_END()));
TEST_VOID(nua_shutdown(NULL));
......@@ -173,7 +179,6 @@ int test_api_errors(struct context *ctx)
TEST_1(!nua_handle_remote(NULL));
TEST_1(!nua_handle_local(NULL));
TEST_S(nua_event_name(-1), "NUA_UNKNOWN");
#if 1 || defined(NDEBUG)
TEST_VOID(nua_register(NULL, TAG_END()));
TEST_VOID(nua_unregister(NULL, TAG_END()));
TEST_VOID(nua_invite(NULL, TAG_END()));
......@@ -195,7 +200,7 @@ int test_api_errors(struct context *ctx)
TEST_VOID(nua_authenticate(NULL, TAG_END()));
TEST_VOID(nua_redirect(NULL, TAG_END()));
TEST_VOID(nua_respond(NULL, 0, "", TAG_END()));
#endif
TEST_1(!nua_handle_home(NULL));
TEST_1(!nua_save_event(NULL, NULL));
TEST_1(!nua_info_event(NULL, NULL, NULL, NULL, NULL,
......@@ -213,7 +218,7 @@ int test_api_errors(struct context *ctx)
TEST_VOID(nua_destroy_event(event));
}
/* su_log_redirect(su_log_default, NULL, stderr); */
su_log_set_level(nua_log, level);
END();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment