diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-29 22:42:07 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-29 23:29:23 +0100 |
commit | 54a5c398aaa1d53b5892c9b0aa5539ae7da651da (patch) | |
tree | 29ed15d9f18f7de856f7436ce816736ec3521559 /source4/torture/basic | |
parent | d38cd9b671dcd0b607e2ba265c6578dc78903386 (diff) | |
download | samba-54a5c398aaa1d53b5892c9b0aa5539ae7da651da.tar.gz samba-54a5c398aaa1d53b5892c9b0aa5539ae7da651da.tar.bz2 samba-54a5c398aaa1d53b5892c9b0aa5539ae7da651da.zip |
s4:torture - prefer the termination "return"s at the end of two unittests
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Mon Nov 29 23:29:23 CET 2010 on sn-devel-104
Diffstat (limited to 'source4/torture/basic')
-rw-r--r-- | source4/torture/basic/base.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/basic/base.c b/source4/torture/basic/base.c index 995357302b..0e168ed95b 100644 --- a/source4/torture/basic/base.c +++ b/source4/torture/basic/base.c @@ -1340,7 +1340,7 @@ static bool run_iometer(struct torture_context *tctx, for (i=0; i<num_reads; i++) { ssize_t res; if (ops++ > torture_numops) { - return true; + break; } res = smbcli_read(cli->tree, fnum, buf, random() % filesize, sizeof(buf)); @@ -1351,7 +1351,7 @@ static bool run_iometer(struct torture_context *tctx, for (i=0; i<num_writes; i++) { ssize_t res; if (ops++ > torture_numops) { - return true; + break; } res = smbcli_write(cli->tree, fnum, 0, buf, random() % filesize, sizeof(buf)); @@ -1360,6 +1360,8 @@ static bool run_iometer(struct torture_context *tctx, smbcli_errstr(cli->tree))); } } + + return true; } /** |