]> granicus.if.org Git - git/commitdiff
t2019: skip test requiring '*' in a file name non Windows
authorJohannes Sixt <j6t@kdbg.org>
Tue, 11 Aug 2015 20:38:46 +0000 (22:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Aug 2015 22:17:30 +0000 (15:17 -0700)
A test case introduced by ae454f61 (Add tests for wildcard "path vs ref"
disambiguation) allocates a file named '*.c'. This does not work on
Windows, because the OS forbids file names containing wildcard
characters. The test case fails where the shell attempts to allocate the
file. Skip the test on Windows.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t2019-checkout-ambiguous-ref.sh

index 8396320d52c190012ecf86348b3a4a58a07c8163..199b22d85e92535f148eaaca4d3856dbdfb6bcec 100755 (executable)
@@ -69,7 +69,7 @@ test_expect_success 'wildcard ambiguation, paths win' '
        )
 '
 
-test_expect_success 'wildcard ambiguation, refs lose' '
+test_expect_success !MINGW 'wildcard ambiguation, refs lose' '
        git init ambi2 &&
        (
                cd ambi2 &&