Skip to content

Commit

Permalink
Guard a test against wc that pads its output with whitespace
Browse files Browse the repository at this point in the history
Spotted by Johannes.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Dec 27, 2005
1 parent 08337a9 commit 8eafa3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t5300-pack-object.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ test_expect_success \
: sum of the index file itself &&
l=`wc -c <test-3.idx` &&
l=`expr "$l" - 20` &&
l=`expr $l - 20` &&
cp test-1-${packname_1}.pack test-3.pack &&
dd if=/dev/zero of=test-3.idx count=20 bs=1 conv=notrunc seek=$l &&
if git-verify-pack test-3.pack
Expand Down

0 comments on commit 8eafa3d

Please sign in to comment.