r14720: Add torture_context argument to all torture tests
[samba.git] / source4 / lib / talloc / testsuite.c
index a37f8c197e3a4f95b5144c73eb35a69c4c56b968..b03be98587aaf06a92f93bfcdac879e2f0fe94b2 100644 (file)
@@ -48,6 +48,8 @@
 #define BOOL int
 #endif
 
+struct torture_context;
+
 static struct timeval timeval_current(void)
 {
        struct timeval tv;
@@ -842,7 +844,7 @@ BOOL test_lifeless(void)
 }
 
 
-BOOL torture_local_talloc(void
+BOOL torture_local_talloc(struct torture_context *torture
 {
        BOOL ret = True;
 
@@ -871,8 +873,8 @@ BOOL torture_local_talloc(void)
 #if !defined(_SAMBA_BUILD_) || ((SAMBA_VERSION_MAJOR==3)&&(SAMBA_VERSION_MINOR<9))
  int main(void)
 {
-       if (!torture_local_talloc()) {
-               printf("ERROR: TESTSUIE FAILED\n");
+       if (!torture_local_talloc(NULL)) {
+               printf("ERROR: TESTSUITE FAILED\n");
                return -1;
        }
        return 0;