summaryrefslogtreecommitdiff
path: root/t/t3903-stash.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-20 16:02:24 -0700
committerJunio C Hamano <gitster@pobox.com>2013-06-20 16:02:24 -0700
commit01c0615dceb433a5498c7160d67f77a6cc9197bb (patch)
tree422612ad3a7e7b0aea14905a815c5d60d5914351 /t/t3903-stash.sh
parent0846fe1a8357b0a99b9d547a4d97844048ae2101 (diff)
parentca8d148daf3014577222c2562ca2c8170a866aa4 (diff)
downloadgit-01c0615dceb433a5498c7160d67f77a6cc9197bb.tar.gz
Merge branch 'fc/show-non-empty-errors-in-test'
* fc/show-non-empty-errors-in-test: test: test_must_be_empty helper
Diffstat (limited to 't/t3903-stash.sh')
-rwxr-xr-xt/t3903-stash.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/t3903-stash.sh b/t/t3903-stash.sh
index 8ff039bdfa..634b2b74f4 100755
--- a/t/t3903-stash.sh
+++ b/t/t3903-stash.sh
@@ -200,17 +200,17 @@ test_expect_success 'apply -q is quiet' '
echo foo > file &&
git stash &&
git stash apply -q > output.out 2>&1 &&
- test ! -s output.out
+ test_must_be_empty output.out
'
test_expect_success 'save -q is quiet' '
git stash save --quiet > output.out 2>&1 &&
- test ! -s output.out
+ test_must_be_empty output.out
'
test_expect_success 'pop -q is quiet' '
git stash pop -q > output.out 2>&1 &&
- test ! -s output.out
+ test_must_be_empty output.out
'
test_expect_success 'pop -q --index works and is quiet' '
@@ -219,13 +219,13 @@ test_expect_success 'pop -q --index works and is quiet' '
git stash save --quiet &&
git stash pop -q --index > output.out 2>&1 &&
test foo = "$(git show :file)" &&
- test ! -s output.out
+ test_must_be_empty output.out
'
test_expect_success 'drop -q is quiet' '
git stash &&
git stash drop -q > output.out 2>&1 &&
- test ! -s output.out
+ test_must_be_empty output.out
'
test_expect_success 'stash -k' '