X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft1400-update-ref.sh;h=ff747f8229bb46df070ea9aad2702f4d1c703420;hb=7d43de925b2771d295d8fc4341b7bd544e2a74fa;hp=d17551eb724a4deb4e682dcfba5a885d5a839ce2;hpb=2dec68cf8fec760930c3bc9d13beb17e381d70a3;p=git.git diff --git a/t/t1400-update-ref.sh b/t/t1400-update-ref.sh index d17551eb7..ff747f822 100755 --- a/t/t1400-update-ref.sh +++ b/t/t1400-update-ref.sh @@ -52,9 +52,8 @@ rm -f .git/$m test_expect_success \ "fail to create $n" \ - "touch .git/$n_dir - git update-ref $n $A >out 2>err"' - test $? != 0' + "touch .git/$n_dir && + test_must_fail git update-ref $n $A >out 2>err" rm -f .git/$n_dir out err test_expect_success \