Merge branch 'jk/fail-prereq-testfix'
GIT_TEST_FAIL_PREREQS is a mechanism to skip test pieces with prerequisites to catch broken tests that depend on the side effects of optional pieces, but did not work at all when negative prerequisites were involved. * jk/fail-prereq-testfix: t: annotate !PTHREADS tests with !FAIL_PREREQS
This commit is contained in:
commit
e537784f64
@ -427,7 +427,8 @@ test_expect_success 'index-pack --strict <pack> works in non-repo' '
|
||||
test_path_is_file foo.idx
|
||||
'
|
||||
|
||||
test_expect_success !PTHREADS 'index-pack --threads=N or pack.threads=N warns when no pthreads' '
|
||||
test_expect_success !PTHREADS,!FAIL_PREREQS \
|
||||
'index-pack --threads=N or pack.threads=N warns when no pthreads' '
|
||||
test_must_fail git index-pack --threads=2 2>err &&
|
||||
grep ^warning: err >warnings &&
|
||||
test_line_count = 1 warnings &&
|
||||
@ -445,7 +446,8 @@ test_expect_success !PTHREADS 'index-pack --threads=N or pack.threads=N warns wh
|
||||
grep -F "no threads support, ignoring pack.threads" err
|
||||
'
|
||||
|
||||
test_expect_success !PTHREADS 'pack-objects --threads=N or pack.threads=N warns when no pthreads' '
|
||||
test_expect_success !PTHREADS,!FAIL_PREREQS \
|
||||
'pack-objects --threads=N or pack.threads=N warns when no pthreads' '
|
||||
git pack-objects --threads=2 --stdout --all </dev/null >/dev/null 2>err &&
|
||||
grep ^warning: err >warnings &&
|
||||
test_line_count = 1 warnings &&
|
||||
|
@ -969,7 +969,8 @@ do
|
||||
"
|
||||
done
|
||||
|
||||
test_expect_success !PTHREADS 'grep --threads=N or pack.threads=N warns when no pthreads' '
|
||||
test_expect_success !PTHREADS,!FAIL_PREREQS \
|
||||
'grep --threads=N or pack.threads=N warns when no pthreads' '
|
||||
git grep --threads=2 Hello hello_world 2>err &&
|
||||
grep ^warning: err >warnings &&
|
||||
test_line_count = 1 warnings &&
|
||||
|
Loading…
Reference in New Issue
Block a user