3 test_description='Test responses to violations of the network protocol. In most
4 of these cases it will generally be acceptable for one side to break off
5 communications if the other side says something unexpected. We are mostly
6 making sure that we do not segfault or otherwise behave badly.'
9 test_expect_success 'extra delim packet in v2 ls-refs args' '
11 packetize command=ls-refs &&
13 # protocol expects 0000 flush here
16 test_must_fail env GIT_PROTOCOL=version=2 \
17 git upload-pack . <input 2>err &&
18 test_i18ngrep "expected flush after ls-refs arguments" err
21 test_expect_success 'extra delim packet in v2 fetch args' '
23 packetize command=fetch &&
25 # protocol expects 0000 flush here
28 test_must_fail env GIT_PROTOCOL=version=2 \
29 git upload-pack . <input 2>err &&
30 test_i18ngrep "expected flush after fetch arguments" err