Home
last modified time | relevance | path

Searched refs:tests (Results 1 – 5 of 5) sorted by relevance

/resolv/
A Dtst-aton.c26 static const struct tests struct
31 } tests[] = variable
77 for (cnt = 0; cnt < array_length (tests); ++cnt) in do_test()
81 if ((int) inet_aton (tests[cnt].input, &addr) != tests[cnt].valid) in do_test()
83 if (tests[cnt].valid) in do_test()
84 printf ("\"%s\" not seen as valid IP address\n", tests[cnt].input); in do_test()
86 printf ("\"%s\" seen as valid IP address\n", tests[cnt].input); in do_test()
89 else if (tests[cnt].valid && addr.s_addr != ntohl (tests[cnt].result)) in do_test()
92 tests[cnt].input, addr.s_addr, tests[cnt].result); in do_test()
A Dtst-p_secstodate.c39 static const struct test tests[] = variable
59 for (size_t i = 0; i < array_length (tests); i++) in do_test()
61 char *p = __p_secstodate (tests[i].in); in do_test()
62 printf ("Test %zu: %lu -> %s\n", i, tests[i].in, p); in do_test()
63 if (strcmp (p, tests[i].out) != 0) in do_test()
A DMakefile71 tests = tst-aton tst-leaks tst-inet_ntop macro
72 tests-container = tst-leaks2
74 tests-internal += tst-inet_aton_exact
84 tests += \
103 tests-internal += tst-resolv-txnid-collision
104 tests-static += tst-resolv-txnid-collision
108 tests += \
116 tests-internal += \
131 tests-internal += tst-inet_pton
135 tests += tst-p_secstodate
[all …]
A Dtst-res_hnok.c50 static const struct test_case tests[] = variable
140 for (const struct test_case *test = tests; test < array_end (tests); ++test) in do_test()
A Dtst-ns_name_pton.c77 static const struct test_case tests[] = variable
144 for (const struct test_case *test = tests; test < array_end (tests); ++test) in do_test()

Completed in 18 milliseconds