real_path(): properly handle nonexistent top-level paths
[gitweb.git] / t / t0060-path-utils.sh
index 3121691c6f34f03b9b17e9e0717283f60b5e2255..30361f94a43b875605bd1c51d99dc3dfbc674003 100755 (executable)
@@ -148,7 +148,7 @@ test_expect_success 'real path rejects the empty string' '
        test_must_fail test-path-utils real_path ""
 '
 
-test_expect_failure POSIX 'real path works on absolute paths' '
+test_expect_success POSIX 'real path works on absolute paths' '
        nopath="hopefully-absent-path" &&
        test "/" = "$(test-path-utils real_path "/")" &&
        test "/$nopath" = "$(test-path-utils real_path "/$nopath")" &&