tests: make use of the test_must_be_empty function
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 27 Jul 2018 17:48:11 +0000 (17:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Jul 2018 18:18:41 +0000 (11:18 -0700)
commitd3c6751b18170276f80e3578d16877d43ad22709
tree6fbc19983489ba653109c8bee1b47d95254e7027
parentffc6fa0e396238de3a30623912980263b4f283ab
tests: make use of the test_must_be_empty function

Change various tests that use an idiom of the form:

    >expect &&
    test_cmp expect actual

To instead use:

    test_must_be_empty actual

The test_must_be_empty() wrapper was introduced in ca8d148daf ("test:
test_must_be_empty helper", 2013-06-09). Many of these tests have been
added after that time. This was mostly found with, and manually pruned
from:

    git grep '^\s+>.*expect.* &&$' t

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
45 files changed:
t/t0008-ignores.sh
t/t0030-stripspace.sh
t/t0300-credentials.sh
t/t1011-read-tree-sparse-checkout.sh
t/t1306-xdg-files.sh
t/t1403-show-ref.sh
t/t1507-rev-parse-upstream.sh
t/t2202-add-addremove.sh
t/t3001-ls-files-others-exclude.sh
t/t3070-wildmatch.sh
t/t3201-branch-contains.sh
t/t3700-add.sh
t/t3910-mac-os-precompose.sh
t/t4010-diff-pathspec.sh
t/t4015-diff-whitespace.sh
t/t4039-diff-assume-unchanged.sh
t/t4200-rerere.sh
t/t4202-log.sh
t/t4210-log-i18n.sh
t/t5310-pack-bitmaps.sh
t/t5313-pack-bounds-checks.sh
t/t5505-remote.sh
t/t5512-ls-remote.sh
t/t5514-fetch-multiple.sh
t/t5533-push-cas.sh
t/t5612-clone-refspec.sh
t/t6000-rev-list-misc.sh
t/t6009-rev-list-parent.sh
t/t6018-rev-list-glob.sh
t/t6019-rev-list-ancestry-path.sh
t/t6022-merge-rename.sh
t/t6060-merge-index.sh
t/t6300-for-each-ref.sh
t/t7004-tag.sh
t/t7006-pager.sh
t/t7030-verify-tag.sh
t/t7063-status-untracked-cache.sh
t/t7102-reset.sh
t/t7106-reset-unborn-branch.sh
t/t7401-submodule-summary.sh
t/t7502-commit.sh
t/t7610-mergetool.sh
t/t7810-grep.sh
t/t9001-send-email.sh
t/t9300-fast-import.sh