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

Jeremy Allison jra at samba.org
Tue Sep 22 18:27:39 UTC 2015


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 :-(.

> +	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)) { \




More information about the samba-technical mailing list