summaryrefslogtreecommitdiff
path: root/t/helper
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2020-03-26 04:37:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-03-27 00:30:48 (GMT)
commit84370e36bb6b26182f70567b2d94d77960d85b3f (patch)
treece89ffcf47bc0175ec6c62cec1c1d1d60e1d4382 /t/helper
parentf73533aa38e5a8f3e56d1cc7d31852b0710b3e39 (diff)
downloadgit-84370e36bb6b26182f70567b2d94d77960d85b3f.zip
git-84370e36bb6b26182f70567b2d94d77960d85b3f.tar.gz
git-84370e36bb6b26182f70567b2d94d77960d85b3f.tar.bz2
t5703: feed raw data into test-tool unpack-sideband
busybox's sed isn't binary clean. Thus, triggers false-negative on this test. We could replace sed with perl on this usecase. But, we could slightly modify the helper to discard unwanted data in the beginning. Fix the false negative by updating this helper. Helped-by: Jeff King <peff@peff.net> Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
-rw-r--r--t/helper/test-pkt-line.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-pkt-line.c b/t/helper/test-pkt-line.c
index 282d536..12ca698 100644
--- a/t/helper/test-pkt-line.c
+++ b/t/helper/test-pkt-line.c
@@ -67,7 +67,7 @@ static void unpack_sideband(void)
case PACKET_READ_NORMAL:
band = reader.line[0] & 0xff;
if (band < 1 || band > 2)
- die("unexpected side band %d", band);
+ continue; /* skip non-sideband packets */
fd = band;
write_or_die(fd, reader.line + 1, reader.pktlen - 1);