summaryrefslogtreecommitdiffstats
path: root/t/t4010-diff-pathspec.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-20 20:33:48 +0200
committerJunio C Hamano <gitster@pobox.com>2018-08-20 20:33:48 +0200
commit14677d25ab50efcf57621ae69d6ba858a5f86165 (patch)
treec480f4a1ac902ab01d430b00e3dfbd2093b30d7a /t/t4010-diff-pathspec.sh
parentMerge branch 'ab/newhash-is-sha256' (diff)
parenttests: make use of the test_must_be_empty function (diff)
downloadgit-14677d25ab50efcf57621ae69d6ba858a5f86165.tar.xz
git-14677d25ab50efcf57621ae69d6ba858a5f86165.zip
Merge branch 'ab/test-must-be-empty-for-master'
Test updates. * ab/test-must-be-empty-for-master: tests: make use of the test_must_be_empty function
Diffstat (limited to 't/t4010-diff-pathspec.sh')
-rwxr-xr-xt/t4010-diff-pathspec.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/t4010-diff-pathspec.sh b/t/t4010-diff-pathspec.sh
index b7f25071cf..281f8fad0c 100755
--- a/t/t4010-diff-pathspec.sh
+++ b/t/t4010-diff-pathspec.sh
@@ -74,8 +74,7 @@ test_expect_success 'diff-tree pathspec' '
tree2=$(git write-tree) &&
echo "$tree2" &&
git diff-tree -r --name-only $tree $tree2 -- pa path1/a >current &&
- >expected &&
- test_cmp expected current
+ test_must_be_empty current
'
test_expect_success 'diff-tree with wildcard shows dir also matches' '