Merge branch 'jn/send-pack-error'
[gitweb.git] / t / test-lib.sh
index a85e7954adb857253375e8eefa31124d6b189160..bbe79e0fcbd88a1d1c02cd5c51c820def8fdd53f 100644 (file)
@@ -248,6 +248,10 @@ test_decode_color () {
                -e 's/.\[m/<RESET>/g'
 }
 
+nul_to_q () {
+       perl -pe 'y/\000/Q/'
+}
+
 q_to_nul () {
        perl -pe 'y/Q/\000/'
 }
@@ -970,6 +974,7 @@ case $(uname -s) in
        # no POSIX permissions
        # backslashes in pathspec are converted to '/'
        # exec does not inherit the PID
+       test_set_prereq MINGW
        ;;
 *)
        test_set_prereq POSIXPERM