]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib/torture: fix tctx arg usage in torture_assert_nttime_equal() macro
authorRalph Boehme <slow@samba.org>
Tue, 29 Nov 2022 11:07:19 +0000 (12:07 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 9 Dec 2022 23:11:38 +0000 (23:11 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/torture/torture.h

index ea34c15e0e9623f90b8071086991b5c634c21cb0..f6089684afd0f64d5d25b3623a4edd0bfddca95d 100644 (file)
@@ -685,7 +685,7 @@ static inline void torture_dump_data_str_cb(const char *buf, void *private_data)
 #define torture_assert_nttime_equal(torture_ctx,got,expected,cmt) \
        do { NTTIME __got = got, __expected = expected; \
        if (!nt_time_equal(&__got, &__expected)) { \
-               torture_result(torture_ctx, TORTURE_FAIL, __location__": "#got" was %s, expected %s: %s", nt_time_string(tctx, __got), nt_time_string(tctx, __expected), cmt); \
+               torture_result(torture_ctx, TORTURE_FAIL, __location__": "#got" was %s, expected %s: %s", nt_time_string(torture_ctx, __got), nt_time_string(torture_ctx, __expected), cmt); \
                return false; \
        }\
        } while(0)