From 67dbe5ac36775838ba8d644ed1362a12d65e02b4 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Tue, 16 Sep 2025 10:28:52 +0100 Subject: [PATCH] testdriver: Suppress log Warning when error detecting --- tests/test_uri.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_uri.c b/tests/test_uri.c index 934dd78f..3f86e67f 100644 --- a/tests/test_uri.c +++ b/tests/test_uri.c @@ -94,11 +94,14 @@ t_parse_uri4(void) { static void t_parse_uri5(void) { + coap_log_t level = coap_get_log_level(); char teststr[] = "coap://foo:100000"; 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_ASSERT(uri.host.length == 3); CU_ASSERT_NSTRING_EQUAL(uri.host.s, "foo", 3);