diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-11-09 14:06:29 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-09 14:06:29 -0800 |
commit | caf3ca7786a1f16215f1caedbbf075ba7ff61c96 (patch) | |
tree | 90fbf6512a5944f65036ed5d1af3518d81bca440 /t/t0070-fundamental.sh | |
parent | Merge branch 'jk/committer-date-is-author-date-fix-simplify' (diff) | |
parent | sideband: diagnose more sideband anomalies (diff) | |
download | tgif-caf3ca7786a1f16215f1caedbbf075ba7ff61c96.tar.xz |
Merge branch 'jk/sideband-more-error-checking'
The code to detect premature EOF in the sideband demultiplexer has
been cleaned up.
* jk/sideband-more-error-checking:
sideband: diagnose more sideband anomalies
Diffstat (limited to 't/t0070-fundamental.sh')
-rwxr-xr-x | t/t0070-fundamental.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t0070-fundamental.sh b/t/t0070-fundamental.sh index 357201640a..8d59905ef0 100755 --- a/t/t0070-fundamental.sh +++ b/t/t0070-fundamental.sh @@ -40,4 +40,16 @@ test_expect_success 'incomplete sideband messages are reassembled' ' grep "Hello, world" err ' +test_expect_success 'eof on sideband message is reported' ' + printf 1234 >input && + test-tool pkt-line receive-sideband <input 2>err && + test_i18ngrep "unexpected disconnect" err +' + +test_expect_success 'missing sideband designator is reported' ' + printf 0004 >input && + test-tool pkt-line receive-sideband <input 2>err && + test_i18ngrep "missing sideband" err +' + test_done |