format-patch: threading test reactivation
[gitweb.git] / test-path-utils.c
index 7e6fc8deaf859e07b268f0fad2dc2e80bc139a34..5168a8e3dfd5150de8def87980118e31e81296e7 100644 (file)
@@ -2,10 +2,11 @@
 
 int main(int argc, char **argv)
 {
-       if (argc == 3 && !strcmp(argv[1], "normalize_absolute_path")) {
+       if (argc == 3 && !strcmp(argv[1], "normalize_path_copy")) {
                char *buf = xmalloc(PATH_MAX + 1);
-               int rv = normalize_absolute_path(buf, argv[2]);
-               assert(strlen(buf) == rv);
+               int rv = normalize_path_copy(buf, argv[2]);
+               if (rv)
+                       buf = "++failed++";
                puts(buf);
                return 0;
        }