diff options
Diffstat (limited to 't/t7516-commit-races.sh')
-rwxr-xr-x | t/t7516-commit-races.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/t/t7516-commit-races.sh b/t/t7516-commit-races.sh index f2ce14e907..bb95f09810 100755 --- a/t/t7516-commit-races.sh +++ b/t/t7516-commit-races.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='git commit races' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'race to create orphan commit' ' @@ -10,7 +12,8 @@ test_expect_success 'race to create orphan commit' ' test_must_fail env EDITOR=./hare-editor git commit --allow-empty -m tortoise -e && git show -s --pretty=format:%s >subject && grep hare subject && - test -z "$(git show -s --pretty=format:%P)" + git show -s --pretty=format:%P >out && + test_must_be_empty out ' test_expect_success 'race to create non-orphan commit' ' |