X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=test-path-utils.c;h=d261398d6c50aeefa7450b99caae23ee5cdff0d0;hb=8718e875080767f2c8d06c55c3fb5a6dddf0e5a0;hp=5168a8e3dfd5150de8def87980118e31e81296e7;hpb=aa41cf8f43687579363a2360795cac621d5254ed;p=git.git diff --git a/test-path-utils.c b/test-path-utils.c index 5168a8e3d..d261398d6 100644 --- a/test-path-utils.c +++ b/test-path-utils.c @@ -26,6 +26,12 @@ int main(int argc, char **argv) return 0; } + if (argc == 4 && !strcmp(argv[1], "strip_path_suffix")) { + char *prefix = strip_path_suffix(argv[2], argv[3]); + printf("%s\n", prefix ? prefix : "(null)"); + return 0; + } + fprintf(stderr, "%s: unknown function name: %s\n", argv[0], argv[1] ? argv[1] : "(there was none)"); return 1;