From 38b33d908cf57a05cf2c663935744cc99919744c Mon Sep 17 00:00:00 2001
From: Frank Winklmeier <frank.winklmeier@cern.ch>
Date: Wed, 4 Mar 2020 12:58:39 +0100
Subject: [PATCH] EventContainers: Fix unchecked StatusCodes

---
 Event/EventContainers/test/IDMT_ContainerTest.cxx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Event/EventContainers/test/IDMT_ContainerTest.cxx b/Event/EventContainers/test/IDMT_ContainerTest.cxx
index f778288a527..df8ec1d3517 100644
--- a/Event/EventContainers/test/IDMT_ContainerTest.cxx
+++ b/Event/EventContainers/test/IDMT_ContainerTest.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 */
 
 // This is a test cxx file for IdentifiableContainerMT. 
@@ -590,7 +590,9 @@ int ID_ContainerTest::execute(){
        }
        auto acollection = new MyCollection(MyID(55));
        for(int f=0;f<20;f++) acollection->add(new MyDigit(f));
-       containerOnline->addCollection(acollection, IdentifierHash(55));
+       if (containerOnline->addCollection(acollection, IdentifierHash(55)).isFailure()) {
+         std::cout << "Error in addCollection cache link" << std::endl; std::abort();
+       }
        SELECTOR select(containerOnline);
 
        digit_const_iterator it1 = select.begin(); 
-- 
GitLab