mirror of
https://github.com/git/git
synced 2024-09-30 13:45:19 +00:00
63ee933383
All the Perforce tests are free of memory leaks. This went unnoticed because most folks do not have p4 and p4d installed on their computers. Consequently, given that the prerequisites for running those tests aren't fulfilled, `TEST_PASSES_SANITIZE_LEAK=check` won't notice that those tests are indeed memory leak free. Mark those tests accordingly. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
41 lines
777 B
Bash
Executable file
41 lines
777 B
Bash
Executable file
#!/bin/sh
|
|
|
|
test_description='git p4 symlinked directories'
|
|
|
|
TEST_PASSES_SANITIZE_LEAK=true
|
|
. ./lib-git-p4.sh
|
|
|
|
test_expect_success 'start p4d' '
|
|
start_p4d
|
|
'
|
|
|
|
test_expect_success 'symlinked directory' '
|
|
(
|
|
cd "$cli" &&
|
|
: >first_file.t &&
|
|
p4 add first_file.t &&
|
|
p4 submit -d "first change"
|
|
) &&
|
|
git p4 clone --dest "$git" //depot &&
|
|
(
|
|
cd "$git" &&
|
|
mkdir -p some/sub/directory &&
|
|
mkdir -p other/subdir2 &&
|
|
: > other/subdir2/file.t &&
|
|
(cd some/sub/directory && ln -s ../../../other/subdir2 .) &&
|
|
git add some other &&
|
|
git commit -m "symlinks" &&
|
|
git config git-p4.skipSubmitEdit true &&
|
|
git p4 submit -v
|
|
) &&
|
|
(
|
|
cd "$cli" &&
|
|
p4 sync &&
|
|
test -L some/sub/directory/subdir2 &&
|
|
test_path_is_file some/sub/directory/subdir2/file.t
|
|
)
|
|
|
|
'
|
|
|
|
test_done
|