mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-04 08:55:40 +03:00
test_uri.c: Stop unnecessary logging
This commit is contained in:
1 parent
e983e4eb5e
commit
959bbb65fa
1 file changed
+6
@@ -181,11 +181,14 @@ t_parse_uri7(void) {
|
||||
|
||||
static void
|
||||
t_parse_uri8(void) {
|
||||
coap_log_t level = coap_get_log_level();
|
||||
char teststr[] = "http://example.com/%7E%AB%13";
|
||||
int result;
|
||||
coap_uri_t uri;
|
||||
|
||||
coap_set_log_level(COAP_LOG_CRIT);
|
||||
result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
|
||||
coap_set_log_level(level);
|
||||
if (result < 0) {
|
||||
CU_PASS("detected non-coap URI");
|
||||
} else {
|
||||
@@ -195,11 +198,14 @@ t_parse_uri8(void) {
|
||||
|
||||
static void
|
||||
t_parse_uri9(void) {
|
||||
coap_log_t level = coap_get_log_level();
|
||||
char teststr[] = "http://example.com/%x";
|
||||
int result;
|
||||
coap_uri_t uri;
|
||||
|
||||
coap_set_log_level(COAP_LOG_CRIT);
|
||||
result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri);
|
||||
coap_set_log_level(level);
|
||||
if (result < 0) {
|
||||
CU_PASS("detected non-coap URI");
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user