From 959bbb65fa9aabf20038aeb19261be98006e026e Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Sun, 23 Apr 2023 14:25:04 +0100 Subject: [PATCH] test_uri.c: Stop unnecessary logging --- tests/test_uri.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_uri.c b/tests/test_uri.c index 7941b860..0b78132d 100644 --- a/tests/test_uri.c +++ b/tests/test_uri.c @@ -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 {