Skip to content

Commit 868e32f

Browse files
committed
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.
1 parent db03f45 commit 868e32f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Framework/test/testCcdbDatabase.cxx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ void askObject(std::string objectPath)
295295
auto json = backendGlobal->retrieveJson(objectPath, -1, metadata);
296296
cout << "std::string::max_size(): " << std::string().max_size() << endl;
297297
cout << "json string size: " << json.size() << endl;
298-
cout << "object " << json.substr(10) << endl;
298+
cout << "object " << json.substr(0, 10) << endl;
299299
BOOST_CHECK(!json.empty());
300300
cout << "finished " << endl;
301301
}

0 commit comments

Comments
 (0)