summaryrefslogtreecommitdiffstats
path: root/src/test/cls_lock
diff options
context:
space:
mode:
authorYuval Lifshitz <ylifshit@redhat.com>2023-11-05 15:52:30 +0100
committerYuval Lifshitz <ylifshit@redhat.com>2023-11-05 15:52:30 +0100
commitd7999aba5acfdc8b088ad76eb2ad98c12846117a (patch)
treefffa4326c9042c4fb894755d17301e8e9f773e15 /src/test/cls_lock
parentMerge pull request #54343 from zdover23/wip-doc-2023-11-05-rados-troubleshoot... (diff)
downloadceph-d7999aba5acfdc8b088ad76eb2ad98c12846117a.tar.xz
ceph-d7999aba5acfdc8b088ad76eb2ad98c12846117a.zip
rgw: adding y2k38 annotations to supress coverity issues
the supression comments must be directly above the line where the issue is. this is a followup on these commits: edfb5b9049ee897779863d780bfbaa130a7fbc40 aca2668c88a048ab556c53411dcf2ccd43099d50 Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
Diffstat (limited to 'src/test/cls_lock')
-rw-r--r--src/test/cls_lock/test_cls_lock.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/cls_lock/test_cls_lock.cc b/src/test/cls_lock/test_cls_lock.cc
index b915de9c236..ef543ce8647 100644
--- a/src/test/cls_lock/test_cls_lock.cc
+++ b/src/test/cls_lock/test_cls_lock.cc
@@ -298,6 +298,7 @@ TEST(ClsLock, TestLockDuration) {
ASSERT_EQ(-EEXIST, r);
}
+ // coverity[store_truncates_time_t:SUPPRESS]
sleep(dur.sec());
ASSERT_EQ(0, l.lock_exclusive(&ioctx, oid));