From 868e32f74da930c60eb2617caf3a586e5b2b5384 Mon Sep 17 00:00:00 2001 From: Piotr Konopka Date: Fri, 2 Oct 2026 09:33:11 +0200 Subject: [PATCH] Do not attempt out of range access in testCcdbDatabase I suspect that the intention of this line was to print first 10 characters, not print all after 10th character. This does not fix the reason for the testCcdbDatabase failures, but let's the test complete without getting an unhandled exception. --- Framework/test/testCcdbDatabase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Framework/test/testCcdbDatabase.cxx b/Framework/test/testCcdbDatabase.cxx index b716b99b4a..c1b9c75dc1 100644 --- a/Framework/test/testCcdbDatabase.cxx +++ b/Framework/test/testCcdbDatabase.cxx @@ -295,7 +295,7 @@ void askObject(std::string objectPath) auto json = backendGlobal->retrieveJson(objectPath, -1, metadata); cout << "std::string::max_size(): " << std::string().max_size() << endl; cout << "json string size: " << json.size() << endl; - cout << "object " << json.substr(10) << endl; + cout << "object " << json.substr(0, 10) << endl; BOOST_CHECK(!json.empty()); cout << "finished " << endl; }