diff options
author | Christian Kamm <mail@ckamm.de> | 2017-12-13 13:03:24 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2017-12-13 13:03:24 +0300 |
commit | e5ed8fc90a4b79638c666441fde5cebbe4ad6454 (patch) | |
tree | 78ff3cef31f538f0d5a87c8498e1929ee4f29f8f /test | |
parent | 02283fc68679906009e3a81b8be633bdcf35f2c9 (diff) | |
parent | 75676f883092426c7f669b65f96f01e36f0a1bc2 (diff) |
Merge remote-tracking branch 'origin/2.4'
Diffstat (limited to 'test')
-rw-r--r-- | test/testsyncjournaldb.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/testsyncjournaldb.cpp b/test/testsyncjournaldb.cpp index 0575c0ed5..cb86a1655 100644 --- a/test/testsyncjournaldb.cpp +++ b/test/testsyncjournaldb.cpp @@ -50,7 +50,9 @@ private slots: QVERIFY(!record.isValid()); record._path = "foo"; - record._inode = 1234; + // Use a value that exceeds uint32 and isn't representable by the + // signed int being cast to uint64 either (like uint64::max would be) + record._inode = std::numeric_limits<quint32>::max() + 12ull; record._modtime = dropMsecs(QDateTime::currentDateTime()); record._type = 5; record._etag = "789789"; @@ -71,8 +73,9 @@ private slots: QVERIFY(storedRecord == record); // Update metadata - record._inode = 12345; record._modtime = dropMsecs(QDateTime::currentDateTime().addDays(1)); + // try a value that only fits uint64, not int64 + record._inode = std::numeric_limits<quint64>::max() - std::numeric_limits<quint32>::max() - 1; record._type = 7; record._etag = "789FFF"; record._fileId = "efg"; |