test_uri.c: Stop unnecessary logging

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2023-04-24 10:45:30 +01:00
1 parent e983e4eb5e
commit 959bbb65fa
1 file changed
+6
+6
View File
@@ -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 {