From e56ae40a3b94ff4a6270fda53533497725fed7cb Mon Sep 17 00:00:00 2001 From: Steven Murray <Steven.Murray@cern.ch> Date: Mon, 22 Jan 2018 11:24:41 +0100 Subject: [PATCH] createTape_9_exabytes_capacity now avoids rounding errors --- catalogue/CatalogueTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalogue/CatalogueTest.cpp b/catalogue/CatalogueTest.cpp index e49dc259aa..391d1001e4 100644 --- a/catalogue/CatalogueTest.cpp +++ b/catalogue/CatalogueTest.cpp @@ -1789,7 +1789,7 @@ TEST_P(cta_catalogue_CatalogueTest, createTape_9_exabytes_capacity) { const std::string logicalLibraryName = "logical_library_name"; const std::string tapePoolName = "tape_pool_name"; // The maximum size of an SQLite integer is a signed 64-bit integer - const uint64_t capacityInBytes = std::numeric_limits<int64_t>::max(); + const uint64_t capacityInBytes = 9L * 1000 * 1000 * 1000 * 1000 * 1000 * 1000; const bool disabledValue = true; const bool fullValue = false; const std::string comment = "Create tape"; -- GitLab