@matheusbsbs / matheus-bagliano / commits / 8eafa3da62
Fork 0

Guard a test against wc that pads its output with whitespace

Spotted by Johannes. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Dec 27, 2005 at 10:51 UTC 8eafa3da62297eb91741321281fd3fb2a4236e97
1 file changed +1 -1
t/t5300-pack-object.sh
+1 -1
@@ -168,7 +168,7 @@ test_expect_success \
168
169 : sum of the index file itself &&
170 l=`wc -c <test-3.idx` &&
171 - l=`expr "$l" - 20` &&
171 + l=`expr $l - 20` &&
172 cp test-1-${packname_1}.pack test-3.pack &&
173 dd if=/dev/zero of=test-3.idx count=20 bs=1 conv=notrunc seek=$l &&
174 if git-verify-pack test-3.pack