test_smb_timestamp_writetime1 source4/torture/util_smb_timestamps.c
authorStefan Metzmacher <metze@samba.org>
Wed, 15 Aug 2018 17:57:53 +0000 (19:57 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 15 Aug 2018 17:57:53 +0000 (19:57 +0200)
source4/torture/util.h
source4/torture/util_smb_timestamps.c [moved from source4/torture/util_writetime.c with 96% similarity]
source4/torture/wscript_build

index 05e983453d2238fbddcdcb3c45c457bc5a843e0f..f3264f86fd8b1da628680c3f3d9c4b18699fca5d 100644 (file)
@@ -107,15 +107,15 @@ NTSTATUS torture_check_privilege(struct smbcli_state *cli,
                                 const char *sid_str,
                                 const char *privilege);
 
-bool test_delay_writetime1(struct torture_context *tctx,
-                          double used_delay,
-                          double normal_delay,
-                          const char *description,
-                          bool (*get_basic_info_cb)(void *private_data,
-                                                    union smb_fileinfo *finfo),
-                          bool (*write_data_cb)(void *private_data),
-                          bool (*close_cb)(void *private_data,
-                                           union smb_fileinfo *finfo),
-                          void *private_data);
+bool test_smb_timestamp_writetime1(struct torture_context *tctx,
+                       double used_delay,
+                       double normal_delay,
+                       const char *description,
+                       bool (*get_basic_info_cb)(void *private_data,
+                                                 union smb_fileinfo *finfo),
+                       bool (*write_data_cb)(void *private_data),
+                       bool (*close_cb)(void *private_data,
+                                        union smb_fileinfo *finfo),
+                       void *private_data);
 
 #endif /* _TORTURE_UTIL_H_ */
similarity index 96%
rename from source4/torture/util_writetime.c
rename to source4/torture/util_smb_timestamps.c
index 453bcd335c33fcb7022a590a04f9316609ab5a93..7d1c0c6c64c05f898522b193864dea26b3aa44fb 100644 (file)
        COMPARE_TIME_CMP(given, access_time, given, write_time, !=); \
 } while (0)
 
-bool test_delay_writetime1(struct torture_context *tctx,
-                          double used_delay,
-                          double normal_delay,
-                          const char *description,
-                          bool (*get_basic_info_cb)(void *private_data,
-                                                    union smb_fileinfo *finfo),
-                          bool (*write_data_cb)(void *private_data),
-                          bool (*close_cb)(void *private_data,
-                                           union smb_fileinfo *finfo),
-                          void *private_data)
+bool test_smb_timestamp_writetime1(struct torture_context *tctx,
+                       double used_delay,
+                       double normal_delay,
+                       const char *description,
+                       bool (*get_basic_info_cb)(void *private_data,
+                                                 union smb_fileinfo *finfo),
+                       bool (*write_data_cb)(void *private_data),
+                       bool (*close_cb)(void *private_data,
+                                        union smb_fileinfo *finfo),
+                       void *private_data)
 {
        union smb_fileinfo finfo0, finfo1, finfo2, finfo3, finfoT;
        struct timeval before_write;
index fb9c324da0512040f41d0bc7a99caea23bbee3d8..01f6caaec609493118b68ee8c2ac006071cf776a 100644 (file)
@@ -2,7 +2,7 @@
 
 
 bld.SAMBA_SUBSYSTEM('TORTURE_UTIL',
-       source='util_smb.c util_writetime.c',
+       source='util_smb.c util_smb_timestamps.c',
        public_deps='torture popt POPT_CREDENTIALS',
        deps='smbclient-raw'
        )