testdriver: Suppress log Warning when error detecting

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2025-09-16 10:45:03 +01:00
1 parent 9266cafe82
commit 67dbe5ac36
1 file changed
+3
+3
View File
@@ -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);