Re: [PATCH] t6018-rev-list-glob: fix 'empty stdin' test

2018-08-22 Thread Eric Sunshine
On Wed, Aug 22, 2018 at 2:59 PM SZEDER Gábor wrote: > On Wed, Aug 22, 2018 at 7:53 PM Eric Sunshine wrote: > > Can you say a word or two (here in the email thread) about how you're > > finding these failures (across the various test fixes you've posted > > recently)? Are you instrumenting the

Re: [PATCH] t6018-rev-list-glob: fix 'empty stdin' test

2018-08-22 Thread Jeff King
On Wed, Aug 22, 2018 at 11:50:46AM -0700, Junio C Hamano wrote: > > test_expect_failure 'rev-list should succeed with empty output on empty > > stdin' ' > > - git rev-list --stdin actual && > > + git rev-list --stdin actual && > > test_must_be_empty actual > > ' > > By the way, it may

Re: [PATCH] t6018-rev-list-glob: fix 'empty stdin' test

2018-08-22 Thread SZEDER Gábor
On Wed, Aug 22, 2018 at 7:53 PM Eric Sunshine wrote: > Can you say a word or two (here in the email thread) about how you're > finding these failures (across the various test fixes you've posted > recently)? Are you instrumenting the code in some fashion? Or, finding > them by visual inspection?

Re: [PATCH] t6018-rev-list-glob: fix 'empty stdin' test

2018-08-22 Thread Junio C Hamano
SZEDER Gábor writes: > Redirect 'git rev-list's stdin explicitly from /dev/null to provide > empty input. (Strictly speaking we don't need this redirection, > because the test script's stdin is already redirected from /dev/null > anyway, but I think it's better to be explicit about it.) Yes.

Re: [PATCH] t6018-rev-list-glob: fix 'empty stdin' test

2018-08-22 Thread Junio C Hamano
SZEDER Gábor writes: > Prior to d3c6751b18 (tests: make use of the test_must_be_empty > function, 2018-07-27), in the test 'rev-list should succeed with empty > output on empty stdin' in 't6018-rev-list-glob' the empty 'expect' > file served dual purpose: besides specifying the expected output,

Re: [PATCH] t6018-rev-list-glob: fix 'empty stdin' test

2018-08-22 Thread Eric Sunshine
On Wed, Aug 22, 2018 at 1:48 PM SZEDER Gábor wrote: > Prior to d3c6751b18 (tests: make use of the test_must_be_empty > function, 2018-07-27), in the test 'rev-list should succeed with empty > output on empty stdin' in 't6018-rev-list-glob' the empty 'expect' > file served dual purpose: besides

[PATCH] t6018-rev-list-glob: fix 'empty stdin' test

2018-08-22 Thread SZEDER Gábor
Prior to d3c6751b18 (tests: make use of the test_must_be_empty function, 2018-07-27), in the test 'rev-list should succeed with empty output on empty stdin' in 't6018-rev-list-glob' the empty 'expect' file served dual purpose: besides specifying the expected output, as usual, it also served as