leak tests: run various built-in tests in t00*.sh SANITIZE=leak
Mark various existing tests in t00*.sh that invoke git built-ins with TEST_PASSES_SANITIZE_LEAK=true as passing when git is compiled with SANITIZE=leak. They'll now be listed as running under the "GIT_TEST_PASSING_SANITIZE_LEAK=true" test mode (the "linux-leaks" CI target). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
							parent
							
								
									25dc57bac8
								
							
						
					
					
						commit
						c150064dbe
					
				|  | @ -2,6 +2,7 @@ | ||||||
|  |  | ||||||
| test_description='git init' | test_description='git init' | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| check_config () { | check_config () { | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ Verify that plumbing commands work when .git is a file | ||||||
| GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main | GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main | ||||||
| export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME | export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| objpath() { | objpath() { | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
|  |  | ||||||
| test_description=gitattributes | test_description=gitattributes | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| attr_check_basic () { | attr_check_basic () { | ||||||
|  |  | ||||||
|  | @ -1,6 +1,8 @@ | ||||||
| #!/bin/sh | #!/bin/sh | ||||||
|  |  | ||||||
| test_description='signals work as we expect' | test_description='signals work as we expect' | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| cat >expect <<EOF | cat >expect <<EOF | ||||||
|  |  | ||||||
|  | @ -1,6 +1,8 @@ | ||||||
| #!/bin/sh | #!/bin/sh | ||||||
|  |  | ||||||
| test_description='basic sanity checks for git var' | test_description='basic sanity checks for git var' | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| test_expect_success 'get GIT_AUTHOR_IDENT' ' | test_expect_success 'get GIT_AUTHOR_IDENT' ' | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
|  |  | ||||||
| test_description=check-ignore | test_description=check-ignore | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| init_vars () { | init_vars () { | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
|  |  | ||||||
| test_description='racy GIT' | test_description='racy GIT' | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| # This test can give false success if your machine is sufficiently | # This test can give false success if your machine is sufficiently | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
|  |  | ||||||
| test_description='ignore CR in CRLF sequence while computing similiarity' | test_description='ignore CR in CRLF sequence while computing similiarity' | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| test_expect_success setup ' | test_expect_success setup ' | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
|  |  | ||||||
| test_description='respect crlf in git archive' | test_description='respect crlf in git archive' | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| test_expect_success setup ' | test_expect_success setup ' | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
|  |  | ||||||
| test_description='CRLF renormalization' | test_description='CRLF renormalization' | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| test_expect_success setup ' | test_expect_success setup ' | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
|  |  | ||||||
| test_description='CRLF conversion' | test_description='CRLF conversion' | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| has_cr() { | has_cr() { | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
|  |  | ||||||
| test_description='test the Windows-only core.unsetenvvars setting' | test_description='test the Windows-only core.unsetenvvars setting' | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| if ! test_have_prereq MINGW | if ! test_have_prereq MINGW | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
|  |  | ||||||
| test_description='update-index and add refuse to add beyond symlinks' | test_description='update-index and add refuse to add beyond symlinks' | ||||||
|  |  | ||||||
|  | TEST_PASSES_SANITIZE_LEAK=true | ||||||
| . ./test-lib.sh | . ./test-lib.sh | ||||||
|  |  | ||||||
| test_expect_success SYMLINKS setup ' | test_expect_success SYMLINKS setup ' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Ævar Arnfjörð Bjarmason
						Ævar Arnfjörð Bjarmason