Lines Matching refs:zassert_equal

243 	zassert_equal(queries_received, expected_query_count,  in ZTEST()
260 zassert_equal(queries_received, expected_query_count, in ZTEST()
265 zassert_equal(ret, DNS_EAI_CANCELED, "Invalid result"); in ZTEST()
277 zassert_equal(ret, DNS_EAI_SYSTEM, "Invalid result"); in ZTEST()
278 zassert_equal(errno, EINVAL, "Invalid errno"); in ZTEST()
297 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
300 zassert_equal(res->ai_family, AF_INET, ""); in ZTEST()
301 zassert_equal(res->ai_socktype, SOCK_STREAM, ""); in ZTEST()
302 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
306 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
309 zassert_equal(res->ai_family, AF_INET, ""); in ZTEST()
310 zassert_equal(res->ai_socktype, SOCK_STREAM, ""); in ZTEST()
311 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
316 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
319 zassert_equal(res->ai_family, AF_INET, ""); in ZTEST()
320 zassert_equal(res->ai_socktype, SOCK_DGRAM, ""); in ZTEST()
321 zassert_equal(res->ai_protocol, IPPROTO_UDP, ""); in ZTEST()
324 zassert_equal(saddr->sin_family, AF_INET, ""); in ZTEST()
325 zassert_equal(saddr->sin_port, htons(65534), ""); in ZTEST()
326 zassert_equal(saddr->sin_addr.s4_addr[0], 1, ""); in ZTEST()
327 zassert_equal(saddr->sin_addr.s4_addr[1], 2, ""); in ZTEST()
328 zassert_equal(saddr->sin_addr.s4_addr[2], 3, ""); in ZTEST()
329 zassert_equal(saddr->sin_addr.s4_addr[3], 255, ""); in ZTEST()
347 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
350 zassert_equal(res->ai_family, AF_INET6, ""); in ZTEST()
351 zassert_equal(res->ai_socktype, SOCK_STREAM, ""); in ZTEST()
352 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
355 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
356 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
357 zassert_equal(saddr->sin6_addr.s6_addr[0], 0xFE, ""); in ZTEST()
358 zassert_equal(saddr->sin6_addr.s6_addr[1], 0xDC, ""); in ZTEST()
359 zassert_equal(saddr->sin6_addr.s6_addr[2], 0xBA, ""); in ZTEST()
360 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x98, ""); in ZTEST()
361 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x76, ""); in ZTEST()
362 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x54, ""); in ZTEST()
363 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x32, ""); in ZTEST()
364 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x10, ""); in ZTEST()
365 zassert_equal(saddr->sin6_addr.s6_addr[8], 0xFE, ""); in ZTEST()
366 zassert_equal(saddr->sin6_addr.s6_addr[9], 0xDC, ""); in ZTEST()
367 zassert_equal(saddr->sin6_addr.s6_addr[10], 0xBA, ""); in ZTEST()
368 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x98, ""); in ZTEST()
369 zassert_equal(saddr->sin6_addr.s6_addr[12], 0x76, ""); in ZTEST()
370 zassert_equal(saddr->sin6_addr.s6_addr[13], 0x54, ""); in ZTEST()
371 zassert_equal(saddr->sin6_addr.s6_addr[14], 0x32, ""); in ZTEST()
372 zassert_equal(saddr->sin6_addr.s6_addr[15], 0x10, ""); in ZTEST()
378 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
381 zassert_equal(res->ai_family, AF_INET6, ""); in ZTEST()
382 zassert_equal(res->ai_socktype, SOCK_STREAM, ""); in ZTEST()
383 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
386 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
387 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
388 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x10, ""); in ZTEST()
389 zassert_equal(saddr->sin6_addr.s6_addr[1], 0x80, ""); in ZTEST()
390 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x0, ""); in ZTEST()
391 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x0, ""); in ZTEST()
392 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x0, ""); in ZTEST()
393 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x0, ""); in ZTEST()
394 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x0, ""); in ZTEST()
395 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x0, ""); in ZTEST()
396 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
397 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x08, ""); in ZTEST()
398 zassert_equal(saddr->sin6_addr.s6_addr[10], 0x08, ""); in ZTEST()
399 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x00, ""); in ZTEST()
400 zassert_equal(saddr->sin6_addr.s6_addr[12], 0x20, ""); in ZTEST()
401 zassert_equal(saddr->sin6_addr.s6_addr[13], 0x0C, ""); in ZTEST()
402 zassert_equal(saddr->sin6_addr.s6_addr[14], 0x41, ""); in ZTEST()
403 zassert_equal(saddr->sin6_addr.s6_addr[15], 0x7A, ""); in ZTEST()
410 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
413 zassert_equal(res->ai_family, AF_INET6, ""); in ZTEST()
414 zassert_equal(res->ai_socktype, SOCK_DGRAM, ""); in ZTEST()
415 zassert_equal(res->ai_protocol, IPPROTO_UDP, ""); in ZTEST()
418 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
419 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
420 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x3f, ""); in ZTEST()
421 zassert_equal(saddr->sin6_addr.s6_addr[1], 0xfe, ""); in ZTEST()
422 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x2a, ""); in ZTEST()
423 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x00, ""); in ZTEST()
424 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x01, ""); in ZTEST()
425 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x00, ""); in ZTEST()
426 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x70, ""); in ZTEST()
427 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x31, ""); in ZTEST()
428 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
429 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x0, ""); in ZTEST()
430 zassert_equal(saddr->sin6_addr.s6_addr[10], 0x0, ""); in ZTEST()
431 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x0, ""); in ZTEST()
432 zassert_equal(saddr->sin6_addr.s6_addr[12], 0x0, ""); in ZTEST()
433 zassert_equal(saddr->sin6_addr.s6_addr[13], 0x0, ""); in ZTEST()
434 zassert_equal(saddr->sin6_addr.s6_addr[14], 0x0, ""); in ZTEST()
435 zassert_equal(saddr->sin6_addr.s6_addr[15], 0x1, ""); in ZTEST()
441 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
444 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
445 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
446 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x10, ""); in ZTEST()
447 zassert_equal(saddr->sin6_addr.s6_addr[1], 0x80, ""); in ZTEST()
448 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x0, ""); in ZTEST()
449 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x0, ""); in ZTEST()
450 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x0, ""); in ZTEST()
451 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x0, ""); in ZTEST()
452 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x0, ""); in ZTEST()
453 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x0, ""); in ZTEST()
454 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
455 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x8, ""); in ZTEST()
456 zassert_equal(saddr->sin6_addr.s6_addr[10], 0x08, ""); in ZTEST()
457 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x00, ""); in ZTEST()
458 zassert_equal(saddr->sin6_addr.s6_addr[12], 0x20, ""); in ZTEST()
459 zassert_equal(saddr->sin6_addr.s6_addr[13], 0x0C, ""); in ZTEST()
460 zassert_equal(saddr->sin6_addr.s6_addr[14], 0x41, ""); in ZTEST()
461 zassert_equal(saddr->sin6_addr.s6_addr[15], 0x7A, ""); in ZTEST()
466 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
469 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
470 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
471 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x0, ""); in ZTEST()
472 zassert_equal(saddr->sin6_addr.s6_addr[1], 0x0, ""); in ZTEST()
473 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x0, ""); in ZTEST()
474 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x0, ""); in ZTEST()
475 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x0, ""); in ZTEST()
476 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x0, ""); in ZTEST()
477 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x0, ""); in ZTEST()
478 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x0, ""); in ZTEST()
479 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
480 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x0, ""); in ZTEST()
481 zassert_equal(saddr->sin6_addr.s6_addr[10], 0x0, ""); in ZTEST()
482 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x0, ""); in ZTEST()
483 zassert_equal(saddr->sin6_addr.s6_addr[12], 192, ""); in ZTEST()
484 zassert_equal(saddr->sin6_addr.s6_addr[13], 9, ""); in ZTEST()
485 zassert_equal(saddr->sin6_addr.s6_addr[14], 5, ""); in ZTEST()
486 zassert_equal(saddr->sin6_addr.s6_addr[15], 5, ""); in ZTEST()
492 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
495 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
496 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
497 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x0, ""); in ZTEST()
498 zassert_equal(saddr->sin6_addr.s6_addr[1], 0x0, ""); in ZTEST()
499 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x0, ""); in ZTEST()
500 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x0, ""); in ZTEST()
501 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x0, ""); in ZTEST()
502 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x0, ""); in ZTEST()
503 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x0, ""); in ZTEST()
504 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x0, ""); in ZTEST()
505 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
506 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x0, ""); in ZTEST()
507 zassert_equal(saddr->sin6_addr.s6_addr[10], 0xFF, ""); in ZTEST()
508 zassert_equal(saddr->sin6_addr.s6_addr[11], 0xFF, ""); in ZTEST()
509 zassert_equal(saddr->sin6_addr.s6_addr[12], 129, ""); in ZTEST()
510 zassert_equal(saddr->sin6_addr.s6_addr[13], 144, ""); in ZTEST()
511 zassert_equal(saddr->sin6_addr.s6_addr[14], 52, ""); in ZTEST()
512 zassert_equal(saddr->sin6_addr.s6_addr[15], 38, ""); in ZTEST()
518 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
521 zassert_equal(saddr->sin6_family, AF_INET6, ""); in ZTEST()
522 zassert_equal(saddr->sin6_port, htons(65534), ""); in ZTEST()
523 zassert_equal(saddr->sin6_addr.s6_addr[0], 0x20, ""); in ZTEST()
524 zassert_equal(saddr->sin6_addr.s6_addr[1], 0x10, ""); in ZTEST()
525 zassert_equal(saddr->sin6_addr.s6_addr[2], 0x83, ""); in ZTEST()
526 zassert_equal(saddr->sin6_addr.s6_addr[3], 0x6B, ""); in ZTEST()
527 zassert_equal(saddr->sin6_addr.s6_addr[4], 0x41, ""); in ZTEST()
528 zassert_equal(saddr->sin6_addr.s6_addr[5], 0x79, ""); in ZTEST()
529 zassert_equal(saddr->sin6_addr.s6_addr[6], 0x0, ""); in ZTEST()
530 zassert_equal(saddr->sin6_addr.s6_addr[7], 0x0, ""); in ZTEST()
531 zassert_equal(saddr->sin6_addr.s6_addr[8], 0x0, ""); in ZTEST()
532 zassert_equal(saddr->sin6_addr.s6_addr[9], 0x0, ""); in ZTEST()
533 zassert_equal(saddr->sin6_addr.s6_addr[10], 0x0, ""); in ZTEST()
534 zassert_equal(saddr->sin6_addr.s6_addr[11], 0x0, ""); in ZTEST()
535 zassert_equal(saddr->sin6_addr.s6_addr[12], 0x83, ""); in ZTEST()
536 zassert_equal(saddr->sin6_addr.s6_addr[13], 0x6B, ""); in ZTEST()
537 zassert_equal(saddr->sin6_addr.s6_addr[14], 0x41, ""); in ZTEST()
538 zassert_equal(saddr->sin6_addr.s6_addr[15], 0x79, ""); in ZTEST()
551 zassert_equal(ret, DNS_EAI_FAIL, "Invalid result"); in ZTEST()
555 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
570 zassert_equal(ret, DNS_EAI_ADDRFAMILY, "Invalid result (%d)", ret); in ZTEST()
584 zassert_equal(ret, DNS_EAI_ADDRFAMILY, "Invalid result (%d)", ret); in ZTEST()
594 zassert_equal(ret, DNS_EAI_NONAME, "Invalid result (%d)", ret); in ZTEST()
613 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
616 zassert_equal(res->ai_family, AF_INET, ""); in ZTEST()
617 zassert_equal(res->ai_socktype, SOCK_STREAM, ""); in ZTEST()
618 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
620 zassert_equal(saddr->sin_family, AF_INET, ""); in ZTEST()
621 zassert_equal(saddr->sin_port, htons(80), ""); in ZTEST()
622 zassert_equal(saddr->sin_addr.s_addr, INADDR_ANY, ""); in ZTEST()
628 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
631 zassert_equal(res->ai_family, AF_INET6, ""); in ZTEST()
632 zassert_equal(res->ai_socktype, SOCK_STREAM, ""); in ZTEST()
633 zassert_equal(res->ai_protocol, IPPROTO_TCP, ""); in ZTEST()
635 zassert_equal(saddr6->sin6_family, AF_INET6, ""); in ZTEST()
636 zassert_equal(saddr6->sin6_port, htons(80), ""); in ZTEST()
637 zassert_equal(0, memcmp(&saddr6->sin6_addr, &in6addr_any, sizeof(in6addr_any)), ""); in ZTEST()
643 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
646 zassert_equal(res->ai_family, AF_INET6, ""); in ZTEST()
647 zassert_equal(res->ai_socktype, SOCK_DGRAM, ""); in ZTEST()
648 zassert_equal(res->ai_protocol, IPPROTO_UDP, ""); in ZTEST()
650 zassert_equal(saddr6->sin6_family, AF_INET6, ""); in ZTEST()
651 zassert_equal(saddr6->sin6_port, htons(80), ""); in ZTEST()
657 zassert_equal(ret, 0, "Invalid result"); in ZTEST()
660 zassert_equal(res->ai_family, AF_INET, ""); in ZTEST()
661 zassert_equal(res->ai_socktype, SOCK_DGRAM, ""); in ZTEST()
662 zassert_equal(res->ai_protocol, IPPROTO_UDP, ""); in ZTEST()
664 zassert_equal(saddr->sin_family, AF_INET, ""); in ZTEST()
665 zassert_equal(saddr->sin_port, htons(80), ""); in ZTEST()