]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t0301-credential-cache.sh
Win32: detect unix socket support at runtime
[thirdparty/git.git] / t / t0301-credential-cache.sh
index 8300faadea9a76f19e3d2c82f5ff600f38bfe18f..f2c146fa2a1dd79fd68bd0c71f836667d5c55cf3 100755 (executable)
@@ -8,6 +8,14 @@ test -z "$NO_UNIX_SOCKETS" || {
        skip_all='skipping credential-cache tests, unix sockets not available'
        test_done
 }
+if test_have_prereq MINGW
+then
+       service_running=$(sc query afunix | grep "4  RUNNING")
+       test -z "$service_running" || {
+               skip_all='skipping credential-cache tests, unix sockets not available'
+               test_done
+       }
+fi
 
 uname_s=$(uname -s)
 case $uname_s in