6 #define T(path, want) \
9 char *got = dirname(strcpy(tmp, path)); \
10 if (strcmp(want, got) != 0) \
11 t_error("dirname(\"%s\") got \"%s\" want \"%s\"\n", path, got, want); \
16 if (strcmp(dirname(0), ".") != 0)
17 t_error("dirname(0) returned \"%s\"; expected \".\"\n", dirname(0));
19 T("/usr/lib", "/usr");