path: root/t/
diff options
authorJonathan Nieder <>2010-10-31 07:36:57 (GMT)
committerJunio C Hamano <>2010-11-09 23:00:43 (GMT)
commit0155a64e88ad65408f9ca6d988156aec0898863d (patch)
tree7cced7af4d2a4080f62cc0d88612e438f162ae1c /t/
parent598f0877aa36b5482734091ffef30e21b4e79803 (diff)
t3301 (notes): use test_expect_code for clarity
Use the test_expect_code helper instead of open-coding it. The main behavior change is to print the command and actual exit status when the test fails. More importantly, this would make it easier to add commands before "git notes show" as part of the same test assertion if needed. Signed-off-by: Jonathan Nieder <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
1 files changed, 1 insertions, 1 deletions
diff --git a/t/ b/t/
index 6931171..7e84ab9 100755
--- a/t/
+++ b/t/
@@ -52,7 +52,7 @@ test_expect_success 'refusing to edit notes in refs/remotes/' '
# 1 indicates caught gracefully by die, 128 means git-show barked
test_expect_success 'handle empty notes gracefully' '
- git notes show ; test 1 = $?
+ test_expect_code 1 git notes show
test_expect_success 'show non-existent notes entry with %N' '