t1430: clean up broken refs/tags/shadow
[gitweb.git] / t / t4053-diff-no-index.sh
index 596dfe712d5e870cbc1a5b88358127d80d0f570c..6eb83211b593ecea798eba3790b9c76fc7d3aa60 100755 (executable)
@@ -17,8 +17,8 @@ test_expect_success 'setup' '
 '
 
 test_expect_success 'git diff --no-index directories' '
-       git diff --no-index a b >cnt
-       test $? = 1 && test_line_count = 14 cnt
+       test_expect_code 1 git diff --no-index a b >cnt &&
+       test_line_count = 14 cnt
 '
 
 test_expect_success 'git diff --no-index relative path outside repo' '