Merge branch 'ab/mark-leak-free-tests-even-more'
More tests are marked as leak-free. * ab/mark-leak-free-tests-even-more: leak tests: mark some fast-import tests as passing with SANITIZE=leak leak tests: mark some config tests as passing with SANITIZE=leak leak tests: mark some status tests as passing with SANITIZE=leak leak tests: mark some clone tests as passing with SANITIZE=leak leak tests: mark some add tests as passing with SANITIZE=leak leak tests: mark some diff tests as passing with SANITIZE=leak leak tests: mark some apply tests as passing with SANITIZE=leak leak tests: mark some notes tests as passing with SANITIZE=leak leak tests: mark some update-index tests as passing with SANITIZE=leak leak tests: mark some rev-parse tests as passing with SANITIZE=leak leak tests: mark some rev-list tests as passing with SANITIZE=leak leak tests: mark some misc tests as passing with SANITIZE=leak leak tests: mark most gettext tests as passing with SANITIZE=leak leak tests: mark "sort" test as passing SANITIZE=leak leak tests: mark a read-tree test as passing SANITIZE=leak
This commit is contained in:
commit
f346fcb62a
t
t0071-sort.sht0200-gettext-basic.sht0201-gettext-fallbacks.sht0202-gettext-perl.sht0204-gettext-reencode-sanity.sht1002-read-tree-m-u-2way.sht1300-config.sht1303-wacky-config.sht1307-config-blob.sht1308-config-set.sht1309-early-config.sht1310-config-default.sht1420-lost-found.sht1503-rev-parse-verify.sht1506-rev-parse-diagnosis.sht1513-rev-parse-prefix.sht1515-rev-parse-outside-repo.sht1600-index.sht2000-conflict-when-checking-files-out.sht2100-update-cache-badpath.sht2101-update-index-reupdate.sht2102-update-index-symlinks.sht2103-update-index-ignore-missing.sht2104-update-index-skip-worktree.sht2105-update-index-gitfile.sht2200-add-update.sht2201-add-update-typechange.sht2202-add-addremove.sht2204-add-ignored.sht2404-worktree-config.sht3302-notes-index-expensive.sht3303-notes-subtrees.sht3320-notes-merge-worktrees.sht3702-add-edit.sht3703-add-magic-pathspec.sht3704-add-pathspec-file.sht3908-stash-in-worktree.sht4000-diff-format.sht4003-diff-rename-1.sht4004-diff-rename-symlink.sht4005-diff-rename-2.sht4006-diff-mode.sht4007-rename-3.sht4009-diff-rename-4.sht4010-diff-pathspec.sht4011-diff-symlink.sht4012-diff-binary.sht4020-diff-external.sht4024-diff-optimize-common.sht4027-diff-submodule.sht4029-diff-trailing-space.sht4032-diff-inter-hunk-context.sht4033-diff-patience.sht4034-diff-words.sht4035-diff-quiet.sht4037-diff-r-t-dirs.sht4040-whitespace-status.sht4046-diff-unmerged.sht4049-diff-stat-count.sht4050-diff-histogram.sht4054-diff-bogus-tree.sht4062-diff-pickaxe.sht4063-diff-blobs.sht4100-apply-stat.sht4101-apply-nonl.sht4102-apply-rename.sht4105-apply-fuzz.sht4106-apply-stdin.sht4109-apply-multifrag.sht4110-apply-scan.sht4112-apply-renames.sht4116-apply-reverse.sht4118-apply-empty-context.sht4119-apply-config.sht4123-apply-shrink.sht4126-apply-empty.sht4127-apply-same-fn.sht4128-apply-root.sht4129-apply-samemode.sht4130-apply-criss-cross-rename.sht4132-apply-removal.sht4133-apply-filenames.sht4134-apply-submodule.sht4136-apply-check.sht4139-apply-escape.sht5002-archive-attr-pattern.sht5200-update-server-info.sht5307-pack-missing-commit.sht5555-http-smart-common.sht5602-clone-remote-exec.sht5603-clone-dirname.sht5701-git-serve.sht5704-protocol-violations.sht6005-rev-list-count.sht6102-rev-list-unexpected-objects.sht6136-pathspec-in-bare.sht7101-reset-empty-subdirs.sht7103-reset-bare.sht7511-status-index.sht7515-status-symlinks.sh
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='verify sort functions'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'llist_mergesort()' '
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
test_description='Gettext support for Git'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./lib-gettext.sh
|
||||
|
||||
test_expect_success "sanity: \$GIT_INTERNAL_GETTEXT_SH_SCHEME is set (to $GIT_INTERNAL_GETTEXT_SH_SCHEME)" '
|
||||
|
@ -8,6 +8,7 @@ test_description='Gettext Shell fallbacks'
|
||||
GIT_INTERNAL_GETTEXT_TEST_FALLBACKS=YesPlease
|
||||
export GIT_INTERNAL_GETTEXT_TEST_FALLBACKS
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./lib-gettext.sh
|
||||
|
||||
test_expect_success "sanity: \$GIT_INTERNAL_GETTEXT_SH_SCHEME is set (to $GIT_INTERNAL_GETTEXT_SH_SCHEME)" '
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
test_description='Perl gettext interface (Git::I18N)'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./lib-gettext.sh
|
||||
|
||||
if ! test_have_prereq PERL; then
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
test_description="Gettext reencoding of our *.po/*.mo files works"
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./lib-gettext.sh
|
||||
|
||||
# The constants used in a tricky observation for undefined behaviour
|
||||
|
@ -8,6 +8,8 @@ test_description='Two way merge with read-tree -m -u $H $M
|
||||
This is identical to t1001, but uses -u to update the work tree as well.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-read-tree.sh
|
||||
|
||||
|
@ -8,6 +8,7 @@ test_description='Test git config in different settings'
|
||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'clear default config' '
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='Test wacky input to git config'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
# Leaving off the newline is intentional!
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='support for reading config from a blob'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'create config blob' '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='Test git config-set API in different settings'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
# 'check_config get_* section.key value' verifies that the entry for
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='Test read_early_config()'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'read early config' '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='Test git config in different settings (with --default)'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'uses --default when entry missing' '
|
||||
|
@ -4,6 +4,8 @@
|
||||
#
|
||||
|
||||
test_description='Test fsck --lost-found'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -9,6 +9,7 @@ exec </dev/null
|
||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
add_line_into_file()
|
||||
|
@ -7,6 +7,7 @@ exec </dev/null
|
||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_did_you_mean ()
|
||||
|
@ -5,6 +5,7 @@ test_description='Tests for rev-parse --prefix'
|
||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='check that certain rev-parse options work outside repo'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'set up non-repo directory' '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='index file specific tests'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
sane_unset GIT_TEST_SPLIT_INDEX
|
||||
|
@ -21,6 +21,7 @@ test_description='git conflicts when checking files out test.'
|
||||
# path1 is occupied by a non-directory. With "-f" flag, it should remove
|
||||
# the conflicting paths and succeed.
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
show_files() {
|
||||
|
@ -22,6 +22,7 @@ and tries to git update-index --add the following:
|
||||
All of the attempts should fail.
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
mkdir path2 path3
|
||||
|
@ -6,6 +6,7 @@
|
||||
test_description='git update-index --again test.
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'update-index --add' '
|
||||
|
@ -8,6 +8,7 @@ test_description='git update-index on filesystem w/o symlinks test.
|
||||
This tests that git update-index keeps the symbolic link property
|
||||
even if a plain file is in the working tree if core.symlinks is false.'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success \
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='update-index with options'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success basics '
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
test_description='skip-worktree bit test'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
sane_unset GIT_TEST_SPLIT_INDEX
|
||||
|
@ -6,6 +6,7 @@
|
||||
test_description='git update-index for gitlink to .git file.
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'submodule with absolute .git file' '
|
||||
|
@ -14,6 +14,7 @@ only the updates to dir/sub.
|
||||
Also tested are "git add -u" without limiting, and "git add -u"
|
||||
without contents changes, and other conditions'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='more git add -u'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='git add --all'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='giving ignored paths to git add'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description="config file in multi worktree"
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
@ -8,6 +8,7 @@ test_description='Test commit notes index (expensive!)'
|
||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
create_repo () {
|
||||
|
@ -5,6 +5,7 @@ test_description='Test commit notes organized in subtrees'
|
||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
number_of_commits=100
|
||||
|
@ -8,6 +8,7 @@ test_description='Test merging of notes trees in multiple worktrees'
|
||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup commit' '
|
||||
|
@ -4,6 +4,8 @@
|
||||
#
|
||||
|
||||
test_description='add -e basic tests'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='magic pathspec tests using git-add'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='add --pathspec-from-file'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_tick
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
test_description='Test git stash in a worktree'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
@ -6,6 +6,8 @@
|
||||
test_description='Test built-in diff output engine.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
|
@ -6,6 +6,8 @@
|
||||
test_description='More rename detection
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
|
@ -9,6 +9,8 @@ The rename detection logic should be able to detect pure rename or
|
||||
copy of symbolic links, but should not produce rename/copy followed
|
||||
by an edit for them.
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
|
@ -5,6 +5,8 @@
|
||||
|
||||
test_description='Same rename detection as t4003 but testing diff-raw.'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
|
@ -6,6 +6,8 @@
|
||||
test_description='Test mode change diffs.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
sed_script='s/\(:100644 100755\) \('"$OID_REGEX"'\) \2 /\1 X X /'
|
||||
|
@ -6,6 +6,8 @@
|
||||
test_description='Rename interaction with pathspec.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
|
@ -6,6 +6,8 @@
|
||||
test_description='Same rename detection as t4003 but testing diff-raw -z.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
|
@ -9,6 +9,8 @@ Prepare:
|
||||
file0
|
||||
path1/file1
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
|
||||
|
||||
|
@ -6,6 +6,8 @@
|
||||
test_description='Test diff of symlinks.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
test_description='Binary diff and apply
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
cat >expect.binary-numstat <<\EOF
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='external diff interface test'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='common tail optimization'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
z=zzzzzzzz ;# 8
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='difference in submodules'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
#
|
||||
test_description='diff honors config option, diff.suppressBlankEmpty'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
cat <<\EOF >expected ||
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='diff hunk fusing'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
f() {
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='patience diff algorithm'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff-alternative.sh
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='word diff colors'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff.sh
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='Return value of diffs'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='diff -r -t shows directory additions and deletions'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='diff --exit-code with whitespace'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='diff with unmerged index entries'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -2,6 +2,8 @@
|
||||
# Copyright (c) 2011, Google Inc.
|
||||
|
||||
test_description='diff --stat-count'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='histogram diff algorithm'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff-alternative.sh
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='test diff with a bogus tree containing the null sha1'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'create bogus tree' '
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
test_description='Pickaxe options'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='test direct comparison of blobs via git-diff'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
run_diff () {
|
||||
|
@ -6,6 +6,8 @@
|
||||
test_description='git apply --stat --summary test, with --recount
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
UNC='s/^\(@@ -[1-9][0-9]*\),[0-9]* \(+[1-9][0-9]*\),[0-9]* @@/\1,999 \2,999 @@/'
|
||||
|
@ -6,6 +6,8 @@
|
||||
test_description='git apply should handle files with incomplete lines.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
# setup
|
||||
|
@ -6,6 +6,8 @@
|
||||
test_description='git apply handling copy/rename patch.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
# setup
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='apply with fuzz and offset'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
dotest () {
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='git apply --numstat - <patch'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
test_description='git apply test patches with multiple fragments.'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
cp "$TEST_DIRECTORY/t4109/patch1.patch" .
|
||||
|
@ -7,6 +7,8 @@
|
||||
test_description='git apply test for patches which require scanning forwards and backwards.
|
||||
|
||||
'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'git apply scan' '
|
||||
|
@ -7,6 +7,8 @@ test_description='git apply should not get confused with rename/copy.
|
||||
|
||||
'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
# setup
|
||||
|
@ -7,6 +7,8 @@ test_description='git apply in reverse
|
||||
|
||||
'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -7,6 +7,8 @@ test_description='git apply with new style GNU diff with empty context
|
||||
|
||||
'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -7,6 +7,8 @@ test_description='git apply --whitespace=strip and configuration file.
|
||||
|
||||
'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='apply a patch that is larger than the preimage'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
cat >F <<\EOF
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='apply empty'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='apply same filename'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
modify () {
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='apply same filename'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='applying patch with mode bits'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='git apply handling criss-cross rename patch.'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
create_file() {
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
test_description='git-apply notices removal patches generated by GNU diff'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -5,6 +5,8 @@
|
||||
|
||||
test_description='git apply filename consistency check'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -5,6 +5,8 @@
|
||||
|
||||
test_description='git apply submodule tests'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
test_description='git apply should exit non-zero with unrecognized input.'
|
||||
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='paths written by git-apply cannot escape the working tree'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
# tests will try to write to ../foo, and we do not
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='git archive attribute pattern tests'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_exists() {
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='Test git update-server-info'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' 'test_commit file'
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='pack should notice missing commit objects'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='test functionality common to smart fetch & push'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description=clone
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='check output directory names used by git-clone'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
# we use a fake ssh wrapper that ignores the arguments
|
||||
|
@ -5,6 +5,7 @@ test_description='test protocol v2 server commands'
|
||||
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
|
||||
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'test capability advertisement' '
|
||||
|
@ -4,6 +4,8 @@ test_description='Test responses to violations of the network protocol. In most
|
||||
of these cases it will generally be acceptable for one side to break off
|
||||
communications if the other side says something unexpected. We are mostly
|
||||
making sure that we do not segfault or otherwise behave badly.'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'extra delim packet in v2 ls-refs args' '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='git rev-list --max-count and --skip test'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='git rev-list should handle unexpected object types'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup well-formed objects' '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='diagnosing out-of-scope pathspec'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup a bare and non-bare repository' '
|
||||
|
@ -4,6 +4,8 @@
|
||||
#
|
||||
|
||||
test_description='git reset should cull empty subdirs'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
. "$TEST_DIRECTORY"/lib-diff-data.sh
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
test_description='git reset in a bare repository'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup non-bare' '
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='git status with certain file name lengths'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
files="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z"
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
test_description='git status and symlinks'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user