Skip to content

Commit

Permalink
Merge branch 'ps/leakfixes-base' into next
Browse files Browse the repository at this point in the history
* ps/leakfixes-base:
  t: mark a bunch of tests as leak-free
  ci: add missing dependency for TTY prereq
  • Loading branch information
gitster committed May 28, 2024
2 parents 639c79c + fba95da commit bab1589
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ alpine-*)
apk add --update shadow sudo build-base curl-dev openssl-dev expat-dev gettext \
pcre2-dev python3 musl-libintl perl-utils ncurses \
apache2 apache2-http2 apache2-proxy apache2-ssl apache2-webdav apr-util-dbd_sqlite3 \
bash cvs gnupg perl-cgi perl-dbd-sqlite >/dev/null
bash cvs gnupg perl-cgi perl-dbd-sqlite perl-io-tty >/dev/null
;;
fedora-*)
dnf -yq update >/dev/null &&
Expand All @@ -42,7 +42,7 @@ ubuntu-*)
language-pack-is libsvn-perl apache2 cvs cvsps git gnupg subversion \
make libssl-dev libcurl4-openssl-dev libexpat-dev wget sudo default-jre \
tcl tk gettext zlib1g-dev perl-modules liberror-perl libauthen-sasl-perl \
libemail-valid-perl libio-socket-ssl-perl libnet-smtp-ssl-perl libdbd-sqlite3-perl libcgi-pm-perl \
libemail-valid-perl libio-pty-perl libio-socket-ssl-perl libnet-smtp-ssl-perl libdbd-sqlite3-perl libcgi-pm-perl \
${CC_PACKAGE:-${CC:-gcc}} $PYTHON_PACKAGE

mkdir --parents "$CUSTOM_PATH"
Expand Down
1 change: 1 addition & 0 deletions t/t0411-clone-from-partial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

test_description='check that local clone does not fetch from promisor remotes'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

test_expect_success 'create evil repo' '
Expand Down
1 change: 1 addition & 0 deletions t/t0610-reftable-basics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
GIT_TEST_DEFAULT_REF_FORMAT=reftable
export GIT_TEST_DEFAULT_REF_FORMAT

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

INVALID_OID=$(test_oid 001)
Expand Down
1 change: 1 addition & 0 deletions t/t2405-worktree-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ test_description='Combination of submodules and multiple worktrees'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

base_path=$(pwd -P)
Expand Down
1 change: 1 addition & 0 deletions t/t7423-submodule-symlinks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

test_description='check that submodule operations do not follow symlinks'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

test_expect_success 'prepare' '
Expand Down
1 change: 1 addition & 0 deletions t/t9200-git-cvsexportcommit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
test_description='Test export of commits to CVS'

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

if ! test_have_prereq PERL; then
Expand Down
1 change: 1 addition & 0 deletions t/t9401-git-cvsserver-crlf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ repository using cvs CLI client via git-cvsserver server'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh

marked_as () {
Expand Down
1 change: 1 addition & 0 deletions t/t9600-cvsimport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ test_description='git cvsimport basic tests'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

TEST_PASSES_SANITIZE_LEAK=true
. ./lib-cvs.sh

if ! test_have_prereq NOT_ROOT; then
Expand Down
1 change: 1 addition & 0 deletions t/t9601-cvsimport-vendor-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ test_description='git cvsimport handling of vendor branches'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

TEST_PASSES_SANITIZE_LEAK=true
. ./lib-cvs.sh

setup_cvs_test_repository t9601
Expand Down
1 change: 1 addition & 0 deletions t/t9602-cvsimport-branches-tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ test_description='git cvsimport handling of branches and tags'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME

TEST_PASSES_SANITIZE_LEAK=true
. ./lib-cvs.sh

setup_cvs_test_repository t9602
Expand Down
2 changes: 2 additions & 0 deletions t/t9603-cvsimport-patchsets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# bug.

test_description='git cvsimport testing for correct patchset estimation'

TEST_PASSES_SANITIZE_LEAK=true
. ./lib-cvs.sh

setup_cvs_test_repository t9603
Expand Down
2 changes: 2 additions & 0 deletions t/t9604-cvsimport-timestamps.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh

test_description='git cvsimport timestamps'

TEST_PASSES_SANITIZE_LEAK=true
. ./lib-cvs.sh

test_lazy_prereq POSIX_TIMEZONE '
Expand Down

0 comments on commit bab1589

Please sign in to comment.