[PATCH] Add a test for 0-byte sized streams

Ralph Böhme rb at sernet.de
Tue Sep 22 18:27:31 UTC 2015


On Tue, Sep 22, 2015 at 11:27:39AM -0700, Jeremy Allison wrote:
> On Tue, Sep 22, 2015 at 03:35:55AM +0200, Ralph Böhme wrote:
> > Hi!
> > 
> > Attached is a patch with a new torture streams test that checks
> > whether 0-byte size streams are returned in a getinfo(streamlist).
> > 
> > Please review and push if ok. Thanks!
> 
> The line below is faulty :-(.

damn! Let me check.

-Ralph

> 
> > +	torture_assert_goto(tctx, ret == ok, ret, done, "smb2_create");
> 
> ../source4/torture/smb2/streams.c: In function ‘test_zero_byte_stream’:
> ../source4/torture/smb2/streams.c:550:35: error: ‘ok’ undeclared (first use in this function)
>   torture_assert_goto(tctx, ret == ok, ret, done, "smb2_create");
>                                    ^
> ../lib/torture/torture.h:257:8: note: in definition of macro ‘torture_assert_goto’
>   if (!(expr)) { \
>         ^
> ../source4/torture/smb2/streams.c:550:35: note: each undeclared identifier is reported only once for each function it appears in
>   torture_assert_goto(tctx, ret == ok, ret, done, "smb2_create");
>                                    ^
> ../lib/torture/torture.h:257:8: note: in definition of macro ‘torture_assert_goto’
>   if (!(expr)) { \
> 

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de,mailto:kontakt@sernet.de



More information about the samba-technical mailing list