summaryrefslogtreecommitdiff
path: root/t/t0060-path-utils.sh
diff options
context:
space:
mode:
authorSebastian Schuberth <sschuberth@gmail.com>2013-10-10 20:49:43 (GMT)
committerJonathan Nieder <jrnieder@gmail.com>2013-10-14 14:32:53 (GMT)
commit7ffd18fce1eef2670661c2e7fd0cb3ef0b8b7fb7 (patch)
treeda0dab11f7a2d0fb521bf2291bf0072b2677523b /t/t0060-path-utils.sh
parentf85f7947c38359c05b9df28fafe769fde9341326 (diff)
downloadgit-7ffd18fce1eef2670661c2e7fd0cb3ef0b8b7fb7.zip
git-7ffd18fce1eef2670661c2e7fd0cb3ef0b8b7fb7.tar.gz
git-7ffd18fce1eef2670661c2e7fd0cb3ef0b8b7fb7.tar.bz2
path-utils test: rename mingw_path function to print_path
mingw_path was introduced in abd4284 to output a mangled path as it is passed as an argument to main(). But the name is misleading because mangling does not come from MinGW, but from MSYS [1]. As abd4284 does not introduce any MSYS or MinGW specific code but just prints out argv[2] as it is passed to main(), give the function the more generic and less confusing name "print_path". [1] http://www.mingw.org/wiki/Posix_path_conversion Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 't/t0060-path-utils.sh')
-rwxr-xr-xt/t0060-path-utils.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0060-path-utils.sh b/t/t0060-path-utils.sh
index 3a48de2..2bd5e32 100755
--- a/t/t0060-path-utils.sh
+++ b/t/t0060-path-utils.sh
@@ -8,13 +8,13 @@ test_description='Test various path utilities'
. ./test-lib.sh
norm_path() {
- expected=$(test-path-utils mingw_path "$2")
+ expected=$(test-path-utils print_path "$2")
test_expect_success $3 "normalize path: $1 => $2" \
"test \"\$(test-path-utils normalize_path_copy '$1')\" = '$expected'"
}
relative_path() {
- expected=$(test-path-utils mingw_path "$3")
+ expected=$(test-path-utils print_path "$3")
test_expect_success $4 "relative path: $1 $2 => $3" \
"test \"\$(test-path-utils relative_path '$1' '$2')\" = '$expected'"
}