svn commit: samba r22545 - in
branches/SAMBA_4_0/source/torture/local: .
metze at samba.org
metze at samba.org
Sat Apr 28 08:00:53 GMT 2007
Author: metze
Date: 2007-04-28 08:00:51 +0000 (Sat, 28 Apr 2007)
New Revision: 22545
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22545
Log:
fix formating and a compiler warning
metze
Modified:
branches/SAMBA_4_0/source/torture/local/share.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/local/share.c
===================================================================
--- branches/SAMBA_4_0/source/torture/local/share.c 2007-04-28 07:31:19 UTC (rev 22544)
+++ branches/SAMBA_4_0/source/torture/local/share.c 2007-04-28 08:00:51 UTC (rev 22545)
@@ -25,8 +25,8 @@
#include "torture/torture.h"
static bool test_list_empty(struct torture_context *tctx,
- const void *tcase_data,
- const void *test_data)
+ const void *tcase_data,
+ const void *test_data)
{
struct share_context *ctx = discard_const(tcase_data);
int count;
@@ -39,8 +39,8 @@
}
static bool test_create(struct torture_context *tctx,
- const void *tcase_data,
- const void *test_data)
+ const void *tcase_data,
+ const void *test_data)
{
struct share_context *ctx = discard_const(tcase_data);
int count;
@@ -77,8 +77,8 @@
static bool test_create_invalid(struct torture_context *tctx,
- const void *tcase_data,
- const void *test_data)
+ const void *tcase_data,
+ const void *test_data)
{
struct share_context *ctx = discard_const(tcase_data);
NTSTATUS status;
@@ -89,19 +89,19 @@
torture_skip(tctx, "Not supported by backend");
torture_assert_ntstatus_equal(tctx, NT_STATUS_INVALID_PARAMETER,
- status,
- "create_share failed");
+ status,
+ "create_share failed");
torture_assert_ntstatus_equal(tctx, NT_STATUS_INVALID_PARAMETER,
- share_create(ctx, NULL, NULL, 0),
- "create_share failed");
+ share_create(ctx, NULL, NULL, 0),
+ "create_share failed");
return true;
}
static bool test_share_remove_invalid(struct torture_context *tctx,
- const void *tcase_data,
- const void *test_data)
+ const void *tcase_data,
+ const void *test_data)
{
struct share_context *ctx = discard_const(tcase_data);
NTSTATUS status;
@@ -111,8 +111,7 @@
if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED))
torture_skip(tctx, "Not supported by backend");
- torture_assert_ntstatus_equal(ctx, status, NT_STATUS_UNSUCCESSFUL,
- "remove fails");
+ torture_assert_ntstatus_equal(tctx, status, NT_STATUS_UNSUCCESSFUL, "remove fails");
return true;
}
@@ -120,8 +119,8 @@
static bool test_share_remove(struct torture_context *tctx,
- const void *tcase_data,
- const void *test_data)
+ const void *tcase_data,
+ const void *test_data)
{
struct share_context *ctx = discard_const(tcase_data);
struct share_info inf[] = {
@@ -135,18 +134,16 @@
if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED))
torture_skip(tctx, "Not supported by backend");
- torture_assert_ntstatus_ok(tctx, status,
- "create_share failed");
+ torture_assert_ntstatus_ok(tctx, status, "create_share failed");
- torture_assert_ntstatus_ok(tctx, share_remove(ctx, "blie"),
- "remove failed");
+ torture_assert_ntstatus_ok(tctx, share_remove(ctx, "blie"), "remove failed");
return true;
}
static bool test_double_create(struct torture_context *tctx,
- const void *tcase_data,
- const void *test_data)
+ const void *tcase_data,
+ const void *test_data)
{
struct share_context *ctx = discard_const(tcase_data);
struct share_info inf[] = {
@@ -160,12 +157,11 @@
if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED))
torture_skip(tctx, "Not supported by backend");
- torture_assert_ntstatus_ok(tctx, status,
- "create_share failed");
+ torture_assert_ntstatus_ok(tctx, status, "create_share failed");
torture_assert_ntstatus_equal(tctx, NT_STATUS_UNSUCCESSFUL,
- share_create(ctx, "bla", inf, 2),
- "create_share failed");
+ share_create(ctx, "bla", inf, 2),
+ "create_share failed");
return true;
}
@@ -176,8 +172,7 @@
torture_tcase_add_test(tcase, "share_create", test_create, NULL);
torture_tcase_add_test(tcase, "share_remove", test_share_remove, NULL);
torture_tcase_add_test(tcase, "share_remove_invalid", test_share_remove_invalid, NULL);
- torture_tcase_add_test(tcase, "share_create_invalid", test_create_invalid,
- NULL);
+ torture_tcase_add_test(tcase, "share_create_invalid", test_create_invalid, NULL);
torture_tcase_add_test(tcase, "share_double_create", test_double_create, NULL);
}
@@ -199,8 +194,7 @@
struct torture_suite *torture_local_share(TALLOC_CTX *mem_ctx)
{
- struct torture_suite *suite = torture_suite_create(mem_ctx,
- "SHARE");
+ struct torture_suite *suite = torture_suite_create(mem_ctx, "SHARE");
struct torture_tcase *tcase;
share_init();
More information about the samba-cvs
mailing list