t1400: fix name and expected result of one test

The test stdin -z create ref fails with zero new value actually passes an empty new value, not a zero new value. So rename the test s/zero/empty/, and change the expected error from fatal: create $c given zero new value to fatal: create $c missing <newvalue> Of course, this makes the test fail now, because although "git update-ref" tries to distinguish between these two errors, it does not succeed in this situation. Fixing it is more than a one-liner, so mark the test test_expect_failure for now. The failure will be fixed later in this patch series. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed Apr 7, 2014 at 15:47 UTC b984d333a1367078c3631b8dfdd0d0ec7b332715
1 file changed +2 -2
t/t1400-update-ref.sh
+2 -2
@@ -827,10 +827,10 @@ test_expect_success 'stdin -z create ref fails with bad new value' '
827 test_must_fail git rev-parse --verify -q $c
828 '
829
830 -test_expect_success 'stdin -z create ref fails with zero new value' '
830 +test_expect_failure 'stdin -z create ref fails with empty new value' '
831 printf $F "create $c" "" >stdin &&
832 test_must_fail git update-ref -z --stdin <stdin 2>err &&
833 - grep "fatal: create $c given zero new value" err &&
833 + grep "fatal: create $c missing <newvalue>" err &&
834 test_must_fail git rev-parse --verify -q $c
835 '
836