Fix more failing tests to pass the event context.
authorSimo Sorce <idra@samba.org>
Tue, 22 Apr 2008 20:37:54 +0000 (16:37 -0400)
committerSimo Sorce <idra@samba.org>
Tue, 22 Apr 2008 20:40:44 +0000 (16:40 -0400)
source/torture/raw/samba3hide.c
source/torture/raw/samba3misc.c
source/torture/rpc/dfs.c
source/torture/rpc/samba3rpc.c

index 814b5f57f43bdebf1812e297d22299f2b5c1a775..1f1501045c1aab72157cfb4e860999f38db486b0 100644 (file)
@@ -136,7 +136,7 @@ bool torture_samba3_hide(struct torture_context *torture)
 
        if (!torture_open_connection_share(
                    torture, &cli, torture, torture_setting_string(torture, "host", NULL),
-                   torture_setting_string(torture, "share", NULL), NULL)) {
+                   torture_setting_string(torture, "share", NULL), torture->ev)) {
                d_printf("torture_open_connection_share failed\n");
                return false;
        }
index 15a7f6c4a32cbbe6a3bc11af774809600b0b0a91..27b4d42dd808937772dc28165314bcabbbbc896f 100644 (file)
@@ -56,7 +56,7 @@ bool torture_samba3_checkfsp(struct torture_context *torture)
 
        if (!torture_open_connection_share(
                    torture, &cli, torture, torture_setting_string(torture, "host", NULL),
-                   torture_setting_string(torture, "share", NULL), NULL)) {
+                   torture_setting_string(torture, "share", NULL), torture->ev)) {
                d_printf("torture_open_connection_share failed\n");
                ret = false;
                goto done;
index 56564769229e210053192cdd4370125731e9168c..1c81766ebe31a5db73e713e9fb954d836619985b 100644 (file)
@@ -124,7 +124,7 @@ static bool test_CreateDir(TALLOC_CTX *mem_ctx,
 {
        printf("Creating directory %s\n", dir);
 
-       if (!torture_open_connection_share(mem_ctx, cli, tctx, host, share, NULL)) {
+       if (!torture_open_connection_share(mem_ctx, cli, tctx, host, share, tctx->ev)) {
                return false;
        }
 
@@ -494,7 +494,7 @@ static void test_cleanup_stdroot(struct dcerpc_pipe *p,
 
        test_RemoveStdRoot(p, mem_ctx, host, sharename);
        test_NetShareDel(mem_ctx, tctx, host, sharename);
-       torture_open_connection_share(mem_ctx, &cli, tctx, host, "C$", NULL);
+       torture_open_connection_share(mem_ctx, &cli, tctx, host, "C$", tctx->ev);
        test_DeleteDir(cli, dir);
        torture_close_connection(cli);
 }
index 40a7c156f41deb715fb75d90a77e5be33d6840b6..1103acaefa55ffedb46af4901eea63ee6c522b74 100644 (file)
@@ -1924,7 +1924,7 @@ bool torture_samba3_rpc_srvsvc(struct torture_context *torture)
 
        if (!(torture_open_connection_share(
                      mem_ctx, &cli, torture, torture_setting_string(torture, "host", NULL),
-                     "IPC$", NULL))) {
+                     "IPC$", torture->ev))) {
                talloc_free(mem_ctx);
                return false;
        }
@@ -1986,7 +1986,7 @@ bool torture_samba3_rpc_randomauth2(struct torture_context *torture)
        if (!(torture_open_connection_share(
                      mem_ctx, &cli,
                      torture, torture_setting_string(torture, "host", NULL),
-                     "IPC$", NULL))) {
+                     "IPC$", torture->ev))) {
                d_printf("IPC$ connection failed\n");
                goto done;
        }
@@ -2281,7 +2281,7 @@ bool torture_samba3_rpc_sharesec(struct torture_context *torture)
 
        if (!(torture_open_connection_share(
                      mem_ctx, &cli, torture, torture_setting_string(torture, "host", NULL),
-                     "IPC$", NULL))) {
+                     "IPC$", torture->ev))) {
                d_printf("IPC$ connection failed\n");
                talloc_free(mem_ctx);
                return false;
@@ -2329,7 +2329,7 @@ bool torture_samba3_rpc_lsa(struct torture_context *torture)
 
        if (!(torture_open_connection_share(
                      mem_ctx, &cli, torture, torture_setting_string(torture, "host", NULL),
-                     "IPC$", NULL))) {
+                     "IPC$", torture->ev))) {
                d_printf("IPC$ connection failed\n");
                talloc_free(mem_ctx);
                return false;
@@ -2611,7 +2611,7 @@ bool torture_samba3_rpc_spoolss(struct torture_context *torture)
 
        if (!(torture_open_connection_share(
                      mem_ctx, &cli, torture, torture_setting_string(torture, "host", NULL),
-                     "IPC$", NULL))) {
+                     "IPC$", torture->ev))) {
                d_printf("IPC$ connection failed\n");
                talloc_free(mem_ctx);
                return false;
@@ -2797,7 +2797,7 @@ bool torture_samba3_rpc_wkssvc(struct torture_context *torture)
 
        if (!(torture_open_connection_share(
                      mem_ctx, &cli, torture, torture_setting_string(torture, "host", NULL),
-                     "IPC$", NULL))) {
+                     "IPC$", torture->ev))) {
                d_printf("IPC$ connection failed\n");
                talloc_free(mem_ctx);
                return false;