Message ID | fc4202cb5484e0e24babc20959e1c78d3dc2c156.1586516583.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mingw: make is_hidden tests in t0001/t5611 more robust | expand |
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 09a2479fd38..09e2cebb456 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -1550,6 +1550,6 @@ test_path_is_hidden () { BUG "test_path_is_hidden can only be used on Windows" # Use the output of `attrib`, ignore the absolute path - case "$(attrib "$1")" in *H*?:*) return 0;; esac + case "$("$SYSTEMROOT"/system32/attrib "$1")" in *H*?:*) return 0;; esac return 1 }