Thread (24 messages) flat view 24 messages, 5 authors, 2018-12-01

Re: [PATCH] t5562: skip if NO_CURL is enabled

From: Jeff King <hidden>
Date: 2018-12-01 19:50:40

On Wed, Nov 28, 2018 at 02:27:08PM +0100, SZEDER Gábor wrote:
quoted
Curiously, the act.err file also has 54 NUL bytes before the "fatal:"
message.
I think those NUL bytes come from the file system.

The contents of 'act.err' from the previous test ('fetch gzipped
empty') is usually:

  fatal: request ended in the middle of the gzip stream
  fatal: the remote end hung up unexpectedly

Notice that the length of the first line is 54 bytes (including the
trailing newline).  So I suspect that the following is happening:

  - http-backend in the previous test writes the first line,
  - that test finishes and this one starts,
  - this test truncates 'act.err',
  - and then the still-running http-backend from the previous test
    finally writes the second line.

So at this point 'act.err' is empty, but the offset of the fd of the
redirection still open from the previous test is at 54, so the file
system fills those bytes with NULs.
Right, good thinking. Thanks for the explanation!

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help