Searched refs:tests (Results 1 – 5 of 5) sorted by relevance
26 static const struct tests struct31 } tests[] = variable77 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()
39 static const struct test tests[] = variable59 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()
71 tests = tst-aton tst-leaks tst-inet_ntop macro72 tests-container = tst-leaks274 tests-internal += tst-inet_aton_exact84 tests += \103 tests-internal += tst-resolv-txnid-collision104 tests-static += tst-resolv-txnid-collision108 tests += \116 tests-internal += \131 tests-internal += tst-inet_pton135 tests += tst-p_secstodate[all …]
50 static const struct test_case tests[] = variable140 for (const struct test_case *test = tests; test < array_end (tests); ++test) in do_test()
77 static const struct test_case tests[] = variable144 for (const struct test_case *test = tests; test < array_end (tests); ++test) in do_test()
Completed in 18 milliseconds