diff --git a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p1_test.cxx b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p1_test.cxx index 8a6de3385b92127edb4345375f2c3aa1950c7652..7c8ed50418dc6db945b90cd230a653d354a1dc5c 100644 --- a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p1_test.cxx +++ b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p1_test.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // $Id$ @@ -163,7 +163,7 @@ makeclusts() cl->setHashAndIndex (hash, i); coll->push_back (std::move (cl)); } - cont->addCollection (coll.release(), hash); + assert( cont->addCollection (coll.release(), hash).isSuccess() ); } // gcc4.9 doesn't allow returning cont directly here; fixed in 5.2. diff --git a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p2_test.cxx b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p2_test.cxx index ae3ff5b5e9e4a63a4a5ba5f521ae0475b96abc13..2bfd784c2f281ddd0ab5f1e377947fcce0c19137 100644 --- a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p2_test.cxx +++ b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p2_test.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // $Id$ @@ -159,7 +159,7 @@ makeclusts() cl->setHashAndIndex (hash, i); coll->push_back (std::move (cl)); } - cont->addCollection (coll.release(), hash); + assert( cont->addCollection (coll.release(), hash).isSuccess() ); } // gcc4.9 doesn't allow returning cont directly here; fixed in 5.2. diff --git a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p3_test.cxx b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p3_test.cxx index 69b823d36565be0f9c386216a4b3bab3fa85d9dd..7b5c68d692dbce46ba80dd89f217b159dd0aa65a 100644 --- a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p3_test.cxx +++ b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelClusterContainerCnv_p3_test.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // $Id$ @@ -159,7 +159,7 @@ makeclusts() cl->setHashAndIndex (hash, i); coll->push_back (std::move (cl)); } - cont->addCollection (coll.release(), hash); + assert( cont->addCollection (coll.release(), hash).isSuccess() ); } // gcc4.9 doesn't allow returning cont directly here; fixed in 5.2. diff --git a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelGangedClusterAmbiguitiesCnv_p1_test.cxx b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelGangedClusterAmbiguitiesCnv_p1_test.cxx index 7f145c719b94194aa03c4b7b63446a73fdc73815..9fef950d5473d33fe26f7058f6181d581ea8b7a7 100644 --- a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelGangedClusterAmbiguitiesCnv_p1_test.cxx +++ b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/PixelGangedClusterAmbiguitiesCnv_p1_test.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // $Id$ @@ -194,7 +194,7 @@ const InDet::PixelClusterContainer& makeclusts (StoreGateSvc* sg) cl->setHashAndIndex (hash, i); coll->push_back (std::move (cl)); } - cont->addCollection (coll.release(), hash); + assert (cont->addCollection (coll.release(), hash).isSuccess()); } const InDet::PixelClusterContainer& ret = *cont; diff --git a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/SCT_ClusterContainerCnv_p2_test.cxx b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/SCT_ClusterContainerCnv_p2_test.cxx index d0d3c4f4444370bd2400f9511a33ae5f9d02e627..62f2054ef0768b8ab1e70ac302711865d7b16758 100644 --- a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/SCT_ClusterContainerCnv_p2_test.cxx +++ b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/SCT_ClusterContainerCnv_p2_test.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // $Id$ @@ -136,7 +136,7 @@ makeclusts(const SCT_ID& sct_id) cl->setHashAndIndex (hash, i); coll->push_back (std::move (cl)); } - cont->addCollection (coll.release(), hash); + assert( cont->addCollection (coll.release(), hash).isSuccess() ); } // gcc4.9 doesn't allow returning cont directly here; fixed in 5.2. diff --git a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/SCT_ClusterContainerCnv_p3_test.cxx b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/SCT_ClusterContainerCnv_p3_test.cxx index 057d6148aaf47e8d11f13f14c2c051ae0c065362..08909a94cf76c0f27d5e7272f36479b1753f5496 100644 --- a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/SCT_ClusterContainerCnv_p3_test.cxx +++ b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/SCT_ClusterContainerCnv_p3_test.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // $Id$ @@ -136,7 +136,7 @@ makeclusts(const SCT_ID& sct_id) cl->setHashAndIndex (hash, i); coll->push_back (std::move (cl)); } - cont->addCollection (coll.release(), hash); + assert( cont->addCollection (coll.release(), hash).isSuccess() ); } // gcc4.9 doesn't allow returning cont directly here; fixed in 5.2. diff --git a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/TRT_DriftCircleContainerCnv_p2_test.cxx b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/TRT_DriftCircleContainerCnv_p2_test.cxx index 9fa154dc641a7914b9112a7506ee957c7f301a3a..cc7c6e00c43208a4dc431389b894fa41abd176f9 100644 --- a/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/TRT_DriftCircleContainerCnv_p2_test.cxx +++ b/InnerDetector/InDetEventCnv/InDetEventTPCnv/test/TRT_DriftCircleContainerCnv_p2_test.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */ // $Id$ @@ -112,7 +112,7 @@ makeclusts (const TRT_ID& trt_id) 54321); coll->push_back (std::move (cl)); } - cont->addCollection (coll.release(), hash); + assert( cont->addCollection (coll.release(), hash).isSuccess() ); } // gcc4.9 doesn't allow returning cont directly here; fixed in 5.2.