sq source4/torture/smb2/timestamps.c
authorStefan Metzmacher <metze@samba.org>
Wed, 15 Aug 2018 17:52:30 +0000 (19:52 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 15 Aug 2018 17:52:30 +0000 (19:52 +0200)
source4/torture/smb2/timestamps.c

index bb8e7325788b740d05461f93becbab30c255d81d..44c7e9dab6e19d50dba5f7193bb621ed72f824ba 100644 (file)
 } while (0)
 #define COMPARE_WRITE_TIME_EQUAL(given,correct) \
        COMPARE_WRITE_TIME_CMP(given,correct,!=)
-#define COMPARE_WRITE_TIME_GREATER(given,correct) \
-       COMPARE_WRITE_TIME_CMP(given,correct,<=)
 
 #define COMPARE_ACCESS_TIME_CMP(given, correct, cmp) do { \
        COMPARE_TIME_CMP(given, access_time, correct, access_time, cmp); \
 } while (0)
 #define COMPARE_ACCESS_TIME_EQUAL(given,correct) \
        COMPARE_ACCESS_TIME_CMP(given,correct,!=)
-#define COMPARE_ACCESS_TIME_GREATER(given,correct) \
-       COMPARE_ACCESS_TIME_CMP(given,correct,<=)
 
 #define COMPARE_CHANGE_TIME_CMP(given, correct, cmp) do { \
        COMPARE_TIME_CMP(given, change_time, correct, change_time, cmp); \
 } while (0)
 #define COMPARE_CHANGE_TIME_EQUAL(given,correct) \
        COMPARE_CHANGE_TIME_CMP(given,correct,!=)
-#define COMPARE_CHANGE_TIME_GREATER(given,correct) \
-       COMPARE_CHANGE_TIME_CMP(given,correct,<=)
 
 #define COMPARE_CREATE_TIME_CMP(given, correct, cmp) do { \
        COMPARE_TIME_CMP(given, create_time, correct, create_time, cmp); \
        COMPARE_CREATE_TIME_EQUAL(given,correct); \
 } while (0)
 
-#define COMPARE_TIMES_AFTER_WRITE(given,correct) do { \
-       COMPARE_WRITE_TIME_GREATER(given,correct); \
-       COMPARE_CHANGE_TIME_GREATER(given,correct); \
-       COMPARE_ACCESS_TIME_EQUAL(given,correct); \
-       COMPARE_CREATE_TIME_EQUAL(given,correct); \
-       COMPARE_TIME_CMP(given, change_time, given, write_time, !=); \
-} while (0)
-
-#define COMPARE_TIMES_AFTER_CLOSE(given,correct) do { \
-       COMPARE_WRITE_TIME_GREATER(given,correct); \
-       COMPARE_CHANGE_TIME_GREATER(given,correct); \
-       COMPARE_ACCESS_TIME_GREATER(given,correct); \
-       COMPARE_CREATE_TIME_EQUAL(given,correct); \
-       COMPARE_TIME_CMP(given, change_time, given, write_time, !=); \
-       COMPARE_TIME_CMP(given, access_time, given, write_time, !=); \
-} while (0)
-
 #define GET_INFO_FILE(tree, finfo) do { \
        struct timeval _atv; \
        struct timeval _wtv; \