Home
last modified time | relevance | path

Searched refs:testhost (Results 1 – 3 of 3) sorted by relevance

/freebsd-12.1/lib/libutil/tests/
H A Dtrimdomain-nodomain_test.c63 char *testhost; in testit() local
66 testhost = strdup(input); in testit()
67 trimdomain(testhost, hostsize < 0 ? (int)strlen(testhost) : hostsize); in testit()
69 if (strcmp(testhost, expected) != 0) { in testit()
71 printf("# %s -> %s (expected %s)\n", input, testhost, expected); in testit()
74 free(testhost); in testit()
H A Dtrimdomain_test.c63 char *testhost; in testit() local
66 testhost = strdup(input); in testit()
67 trimdomain(testhost, hostsize < 0 ? (int)strlen(testhost) : hostsize); in testit()
69 if (strcmp(testhost, expected) != 0) { in testit()
71 printf("# %s -> %s (expected %s)\n", input, testhost, expected); in testit()
74 free(testhost); in testit()
/freebsd-12.1/contrib/amd/wire-test/
H A Dwire-test.c55 char *testhost, *proto, *tmp_buf; in main() local
86 testhost = argv[1]; in main()
88 testhost = "localhost"; in main()
89 hp = gethostbyname(testhost); in main()
91 fprintf(stderr, "NFS vers/proto failed: no such hostname \"%s\"\n", testhost); in main()
101 fprintf(stderr, "NFS Version and protocol tests to host \"%s\"...\n", testhost); in main()
105 ret = get_nfs_version(testhost, ip, nv, proto, 0); in main()
115 ret = get_nfs_version(testhost, ip, nv, proto, 0); in main()