diff options
author | Jared Hance <jaredhance@gmail.com> | 2010-07-20 19:18:34 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-07-20 16:47:17 -0700 |
commit | ce14e0b264b31dd02a0c9d1688bceb6579d052fa (patch) | |
tree | 6496dde81c7a512ee30b90afff7f5c9914093dfb /t/t3301-notes.sh | |
parent | c5212b87dafb3f559ceb898bd9b40bfc3cd0ad68 (diff) | |
download | git-ce14e0b264b31dd02a0c9d1688bceb6579d052fa.tar.gz |
Convert "! git" to "test_must_fail git"
test_must_fail will account for segfaults in git, so it should be used
instead of "! git"
This patch does not change any of the commands that use pipes.
Signed-off-by: Jared Hance <jaredhance@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3301-notes.sh')
-rwxr-xr-x | t/t3301-notes.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh index 2d67a40fc1..421c9884da 100755 --- a/t/t3301-notes.sh +++ b/t/t3301-notes.sh @@ -299,7 +299,7 @@ cat expect-F >> expect-rm-F test_expect_success 'verify note removal with -F /dev/null' ' git log -4 > output && test_cmp expect-rm-F output && - ! git notes show + test_must_fail git notes show ' test_expect_success 'do not create empty note with -m "" (setup)' ' @@ -309,7 +309,7 @@ test_expect_success 'do not create empty note with -m "" (setup)' ' test_expect_success 'verify non-creation of note with -m ""' ' git log -4 > output && test_cmp expect-rm-F output && - ! git notes show + test_must_fail git notes show ' cat > expect-combine_m_and_F << EOF @@ -357,7 +357,7 @@ cat expect-multiline >> expect-rm-remove test_expect_success 'verify note removal with "git notes remove"' ' git log -4 > output && test_cmp expect-rm-remove output && - ! git notes show HEAD^ + test_must_fail git notes show HEAD^ ' cat > expect << EOF |