Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-11-10 01:06:29 +0300
committerJunio C Hamano <gitster@pobox.com>2020-11-10 01:06:29 +0300
commitcaf3ca7786a1f16215f1caedbbf075ba7ff61c96 (patch)
tree90fbf6512a5944f65036ed5d1af3518d81bca440 /t
parent6a44c9c0d05839d6402c84a80acd0c2525f3a85e (diff)
parentaf22a63c3995e4113963aa756c580bb111d99176 (diff)
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')
-rwxr-xr-xt/t0070-fundamental.sh12
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