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