summaryrefslogtreecommitdiff
path: root/source4/torture/basic/locking.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-10 08:00:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:09:58 -0500
commitb7c5bc522b286e8e478b6f74a68bc68829e64c3c (patch)
tree9a98f20f035f906be11697a1e8cc37248f15142d /source4/torture/basic/locking.c
parent56bb8f40623be28f385ff5bb8d39ab0a4f657de5 (diff)
downloadsamba-b7c5bc522b286e8e478b6f74a68bc68829e64c3c.tar.gz
samba-b7c5bc522b286e8e478b6f74a68bc68829e64c3c.tar.bz2
samba-b7c5bc522b286e8e478b6f74a68bc68829e64c3c.zip
r16907: Add an index parameter to torture_open_connection. Next step is to enable the
unclist parameter for all tests that do two connections, to enable cluster testing. Volker (This used to be commit a5d6db09244d444986f8fded3fc6e72c74c8ca1f)
Diffstat (limited to 'source4/torture/basic/locking.c')
-rw-r--r--source4/torture/basic/locking.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/source4/torture/basic/locking.c b/source4/torture/basic/locking.c
index 1ee7572967..c4aae64ca8 100644
--- a/source4/torture/basic/locking.c
+++ b/source4/torture/basic/locking.c
@@ -46,7 +46,8 @@ BOOL torture_locktest1(struct torture_context *torture)
time_t t1, t2;
uint_t lock_timeout;
- if (!torture_open_connection(&cli1) || !torture_open_connection(&cli2)) {
+ if (!torture_open_connection(&cli1, 0) ||
+ !torture_open_connection(&cli2, 1)) {
return False;
}
@@ -202,7 +203,7 @@ BOOL torture_locktest2(struct torture_context *torture)
int fnum1, fnum2, fnum3;
BOOL correct = True;
- if (!torture_open_connection(&cli)) {
+ if (!torture_open_connection(&cli, 0)) {
return False;
}
@@ -347,7 +348,8 @@ BOOL torture_locktest3(struct torture_context *torture)
#define NEXT_OFFSET offset += (~(uint32_t)0) / torture_numops
- if (!torture_open_connection(&cli1) || !torture_open_connection(&cli2)) {
+ if (!torture_open_connection(&cli1, 0) ||
+ !torture_open_connection(&cli2, 1)) {
return False;
}
@@ -479,7 +481,8 @@ BOOL torture_locktest4(struct torture_context *torture)
uint8_t buf[1000];
BOOL correct = True;
- if (!torture_open_connection(&cli1) || !torture_open_connection(&cli2)) {
+ if (!torture_open_connection(&cli1, 0) ||
+ !torture_open_connection(&cli2, 1)) {
return False;
}
@@ -649,7 +652,8 @@ BOOL torture_locktest5(struct torture_context *torture)
uint8_t buf[1000];
BOOL correct = True;
- if (!torture_open_connection(&cli1) || !torture_open_connection(&cli2)) {
+ if (!torture_open_connection(&cli1, 0) ||
+ !torture_open_connection(&cli2, 1)) {
return False;
}
@@ -771,7 +775,7 @@ BOOL torture_locktest6(struct torture_context *torture)
int fnum;
NTSTATUS status;
- if (!torture_open_connection(&cli)) {
+ if (!torture_open_connection(&cli, 0)) {
return False;
}
@@ -815,7 +819,7 @@ BOOL torture_locktest7(struct torture_context *torture)
uint8_t buf[200];
BOOL correct = False;
- if (!torture_open_connection(&cli1)) {
+ if (!torture_open_connection(&cli1, 0)) {
return False;
}