Skip to content
Snippets Groups Projects
Commit 196dbe1b authored by scott snyder's avatar scott snyder
Browse files

TrigParticleTPCnv: Tweak leak-checking for gcc10.

    
Need to call currentContext() before starting leakcheck.
parent 2a7e9dd8
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file TrigParticleTPCnv/test/TrigEFBphysCnv_p2_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -16,6 +14,7 @@
#include "SGTools/TestStore.h"
#include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/ThreadLocalContext.h"
#include <cassert>
#include <iostream>
......@@ -55,6 +54,7 @@ void testit (const TrigEFBphys& trans1)
void test1()
{
std::cout << "test1\n";
(void)Gaudi::Hive::currentContext();
// Get proxies created outside of leak check.
ElementLink<TrigEFBphysContainer> foo ("foo", 10);
ElementLink<Rec::TrackParticleContainer> bar1 ("bar1", 1);
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file TrigParticleTPCnv/test/TrigEFBphysCnv_p3_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -16,6 +14,7 @@
#include "SGTools/TestStore.h"
#include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/ThreadLocalContext.h"
#include <cassert>
#include <iostream>
......@@ -55,6 +54,7 @@ void testit (const TrigEFBphys& trans1)
void test1()
{
std::cout << "test1\n";
(void)Gaudi::Hive::currentContext();
// Get proxies created outside of leak check.
ElementLink<TrigEFBphysContainer> foo ("foo", 10);
ElementLink<Rec::TrackParticleContainer> bar1 ("bar1", 1);
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file TrigParticleTPCnv/test/TrigElectronCnv_p2_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -18,6 +16,7 @@
#include "TestTools/FLOATassert.h"
#include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/ThreadLocalContext.h"
#include <cassert>
#include <iostream>
......@@ -79,6 +78,7 @@ void testit (const TrigElectron& trans1)
void test1()
{
std::cout << "test1\n";
(void)Gaudi::Hive::currentContext();
// Get proxies created outside of leak check.
ElementLink< TrigEMClusterContainer > foo ("foo", 10);
ElementLink< TrigInDetTrackCollection > bar ("bar", 20);
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file TrigParticleTPCnv/test/TrigElectronCnv_p3_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -17,6 +15,7 @@
#include "TestTools/FLOATassert.h"
#include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/ThreadLocalContext.h"
#include <cassert>
#include <iostream>
......@@ -76,6 +75,7 @@ void testit (const TrigElectron& trans1)
void test1()
{
std::cout << "test1\n";
(void)Gaudi::Hive::currentContext();
// Get proxies created outside of leak check.
ElementLink< TrigEMClusterContainer > foo ("foo", 10);
ElementLink< TrigInDetTrackCollection > bar ("bar", 20);
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file TrigParticleTPCnv/test/TrigL2BphysCnv_p2_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -16,6 +14,7 @@
#include "SGTools/TestStore.h"
#include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/ThreadLocalContext.h"
#include <cassert>
#include <iostream>
......@@ -55,6 +54,7 @@ void testit (const TrigL2Bphys& trans1)
void test1()
{
std::cout << "test1\n";
(void)Gaudi::Hive::currentContext();
// Get proxies created outside of leak check.
ElementLink<TrigL2BphysContainer> foo ("foo", 10);
ElementLink<TrigInDetTrackCollection> bar1 ("bar1", 1);
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file TrigParticleTPCnv/test/TrigL2BphysCnv_p3_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -16,6 +14,7 @@
#include "SGTools/TestStore.h"
#include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/ThreadLocalContext.h"
#include <cassert>
#include <iostream>
......@@ -55,6 +54,7 @@ void testit (const TrigL2Bphys& trans1)
void test1()
{
std::cout << "test1\n";
(void)Gaudi::Hive::currentContext();
// Get proxies created outside of leak check.
ElementLink<TrigL2BphysContainer> foo ("foo", 10);
ElementLink<TrigInDetTrackCollection> bar1 ("bar1", 1);
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file TrigParticleTPCnv/test/TrigPhotonCnv_p2_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -18,6 +16,7 @@
#include "TestTools/FLOATassert.h"
#include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/ThreadLocalContext.h"
#include <cassert>
#include <iostream>
......@@ -73,6 +72,7 @@ void testit (const TrigPhoton& trans1)
void test1()
{
std::cout << "test1\n";
(void)Gaudi::Hive::currentContext();
// Get proxy created outside of leak check.
ElementLink< TrigEMClusterContainer > foo ("foo", 10);
Athena_test::Leakcheck check;
......
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file TrigParticleTPCnv/test/TrigPhotonCnv_p3_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -17,6 +15,7 @@
#include "TestTools/FLOATassert.h"
#include "TestTools/leakcheck.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/ThreadLocalContext.h"
#include <cassert>
#include <iostream>
......@@ -70,6 +69,7 @@ void testit (const TrigPhoton& trans1)
void test1()
{
std::cout << "test1\n";
(void)Gaudi::Hive::currentContext();
// Get proxy created outside of leak check.
ElementLink< TrigEMClusterContainer > foo ("foo", 10);
Athena_test::Leakcheck check;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment