Home
last modified time | relevance | path

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

/f-stack/tools/libutil/tests/
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()
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()