Searched refs:testhost (Results 1 – 2 of 2) sorted by relevance
| /f-stack/tools/libutil/tests/ |
| H A D | trimdomain_test.c | 63 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 D | trimdomain-nodomain_test.c | 63 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()
|