Skip to content

Commit 5b1fe6e

Browse files
avargitster
authored andcommitted
test-lib: add an EXPENSIVE_ON_WINDOWS prerequisite
Add an EXPENSIVE_ON_WINDOWS prerequisite to mark those tests which are very expensive to run on Windows, but cheap elsewhere. Certain tests that heavily stress the filesystem or run a lot of shell commands are disproportionately expensive on Windows, this prerequisite will later be used by a tests that runs in 4-8 seconds on a modern Linux system, but takes almost 10 minutes on Windows. There's no reason to skip such tests by default on other platforms, but Windows users shouldn't need to wait around while they finish. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent de8bada commit 5b1fe6e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

t/test-lib.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,6 +1109,10 @@ test_lazy_prereq EXPENSIVE '
11091109
test -n "$GIT_TEST_LONG"
11101110
'
11111111

1112+
test_lazy_prereq EXPENSIVE_ON_WINDOWS '
1113+
test_have_prereq EXPENSIVE || test_have_prereq !MINGW,!CYGWIN
1114+
'
1115+
11121116
test_lazy_prereq USR_BIN_TIME '
11131117
test -x /usr/bin/time
11141118
'

0 commit comments

Comments
 (0)