]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t0060-path-utils.sh
t0060: split absolute path test in two to exercise some of it on Windows
[thirdparty/git.git] / t / t0060-path-utils.sh
index e40f764d54be4993df6e442b541756917f4289df..4ef2345982fe0e0c175ed67edcb20b04c81b9680 100755 (executable)
@@ -148,10 +148,14 @@ test_expect_success 'real path rejects the empty string' '
        test_must_fail test-path-utils real_path ""
 '
 
-test_expect_success POSIX 'real path works on absolute paths' '
+test_expect_success POSIX 'real path works on absolute paths 1' '
        nopath="hopefully-absent-path" &&
        test "/" = "$(test-path-utils real_path "/")" &&
-       test "/$nopath" = "$(test-path-utils real_path "/$nopath")" &&
+       test "/$nopath" = "$(test-path-utils real_path "/$nopath")"
+'
+
+test_expect_success 'real path works on absolute paths 2' '
+       nopath="hopefully-absent-path" &&
        # Find an existing top-level directory for the remaining tests:
        d=$(pwd -P | sed -e "s|^\([^/]*/[^/]*\)/.*|\1|") &&
        test "$d" = "$(test-path-utils real_path "$d")" &&