Skip to content
Snippets Groups Projects
Commit c75c45b1 authored by Scott Snyder's avatar Scott Snyder Committed by Frank Winklmeier
Browse files

ZdcEventTPCnv: Fix thread-safety checker warnings.

ZdcEventTPCnv: Fix thread-safety checker warnings.

Fix (disabled-by-default) warnings about calls to unchecked code.
parent cec8ee85
No related branches found
No related tags found
No related merge requests found
Showing
with 41 additions and 49 deletions
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
# Declare the package name:
atlas_subdir( ZdcEventTPCnv )
......@@ -19,39 +19,39 @@ atlas_add_dictionary( ZdcEventTPCnvDict
atlas_add_test( ZdcDigitsCnv_p1_test
SOURCES
test/ZdcDigitsCnv_p1_test.cxx
LINK_LIBRARIES TestTools ZdcEventTPCnv )
LINK_LIBRARIES TestTools ZdcEventTPCnv CxxUtils )
atlas_add_test( ZdcDigitsCollectionCnv_p1_test
SOURCES
test/ZdcDigitsCollectionCnv_p1_test.cxx
LINK_LIBRARIES TestTools ZdcEventTPCnv )
LINK_LIBRARIES TestTools ZdcEventTPCnv CxxUtils )
atlas_add_test( ZdcRawChannelCnv_p1_test
SOURCES
test/ZdcRawChannelCnv_p1_test.cxx
LINK_LIBRARIES TestTools ZdcEventTPCnv )
LINK_LIBRARIES TestTools ZdcEventTPCnv CxxUtils )
atlas_add_test( ZdcRawChannelCollectionCnv_p1_test
SOURCES
test/ZdcRawChannelCollectionCnv_p1_test.cxx
LINK_LIBRARIES TestTools ZdcEventTPCnv )
LINK_LIBRARIES TestTools ZdcEventTPCnv CxxUtils )
atlas_add_test( ZDC_SimPixelHitCnv_p1_test
SOURCES
test/ZDC_SimPixelHitCnv_p1_test.cxx
LINK_LIBRARIES TestTools ZdcEventTPCnv )
LINK_LIBRARIES TestTools ZdcEventTPCnv CxxUtils )
atlas_add_test( ZDC_SimPixelHit_CollectionCnv_p1_test
SOURCES
test/ZDC_SimPixelHit_CollectionCnv_p1_test.cxx
LINK_LIBRARIES TestTools ZdcEventTPCnv )
LINK_LIBRARIES TestTools ZdcEventTPCnv CxxUtils )
atlas_add_test( ZDC_SimStripHitCnv_p1_test
SOURCES
test/ZDC_SimStripHitCnv_p1_test.cxx
LINK_LIBRARIES TestTools ZdcEventTPCnv )
LINK_LIBRARIES TestTools ZdcEventTPCnv CxxUtils )
atlas_add_test( ZDC_SimStripHit_CollectionCnv_p1_test
SOURCES
test/ZDC_SimStripHit_CollectionCnv_p1_test.cxx
LINK_LIBRARIES TestTools ZdcEventTPCnv )
LINK_LIBRARIES TestTools ZdcEventTPCnv CxxUtils )
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file ZdcEventTPCnv/test/ZDC_SimPixelHitCnv_p1_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -13,6 +11,7 @@
#undef NDEBUG
#include "ZdcEventTPCnv/ZDC_SimPixelHitCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
......@@ -42,7 +41,7 @@ void testit (const ZDC_SimPixelHit& trans1)
}
void test1()
void test1 ATLAS_NOT_THREAD_SAFE ()
{
std::cout << "test1\n";
Athena_test::Leakcheck check;
......@@ -53,7 +52,7 @@ void test1()
}
int main()
int main ATLAS_NOT_THREAD_SAFE ()
{
test1();
return 0;
......
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file ZdcEventTPCnv/test/ZDC_SimPixelHit_CollectionCnv_p1_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -13,6 +11,7 @@
#undef NDEBUG
#include "ZdcEventTPCnv/ZDC_SimPixelHit_CollectionCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
......@@ -52,7 +51,7 @@ void testit (const ZDC_SimPixelHit_Collection& trans1)
}
void test1()
void test1 ATLAS_NOT_THREAD_SAFE ()
{
std::cout << "test1\n";
ZDC_SimPixelHit_Collection dum1 ("coll");
......@@ -68,7 +67,7 @@ void test1()
}
int main()
int main ATLAS_NOT_THREAD_SAFE ()
{
test1();
return 0;
......
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file ZdcEventTPCnv/test/ZDC_SimStripHitCnv_p1_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -13,6 +11,7 @@
#undef NDEBUG
#include "ZdcEventTPCnv/ZDC_SimStripHitCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
......@@ -41,7 +40,7 @@ void testit (const ZDC_SimStripHit& trans1)
}
void test1()
void test1 ATLAS_NOT_THREAD_SAFE ()
{
std::cout << "test1\n";
Athena_test::Leakcheck check;
......@@ -52,7 +51,7 @@ void test1()
}
int main()
int main ATLAS_NOT_THREAD_SAFE ()
{
test1();
return 0;
......
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file ZdcEventTPCnv/test/ZDC_SimStripHit_CollectionCnv_p1_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -13,6 +11,7 @@
#undef NDEBUG
#include "ZdcEventTPCnv/ZDC_SimStripHit_CollectionCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
......@@ -51,7 +50,7 @@ void testit (const ZDC_SimStripHit_Collection& trans1)
}
void test1()
void test1 ATLAS_NOT_THREAD_SAFE ()
{
std::cout << "test1\n";
ZDC_SimStripHit_Collection dum1 ("coll");
......@@ -67,7 +66,7 @@ void test1()
}
int main()
int main ATLAS_NOT_THREAD_SAFE ()
{
test1();
return 0;
......
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file ZdcEventTPCnv/test/ZdcDigitsCnv_p1_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -13,6 +11,7 @@
#undef NDEBUG
#include "ZdcEventTPCnv/ZdcDigitsCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
......@@ -42,7 +41,7 @@ void testit (const ZdcDigits& trans1)
}
void test1()
void test1 ATLAS_NOT_THREAD_SAFE ()
{
std::cout << "test1\n";
Athena_test::Leakcheck check;
......@@ -57,7 +56,7 @@ void test1()
}
int main()
int main ATLAS_NOT_THREAD_SAFE ()
{
test1();
return 0;
......
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file ZdcEventTPCnv/test/ZdcDigitsCollectionCnv_p1_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -13,6 +11,7 @@
#undef NDEBUG
#include "ZdcEventTPCnv/ZdcDigitsCollectionCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
......@@ -51,7 +50,7 @@ void testit (const ZdcDigitsCollection& trans1)
}
void test1()
void test1 ATLAS_NOT_THREAD_SAFE ()
{
std::cout << "test1\n";
Athena_test::Leakcheck check;
......@@ -71,7 +70,7 @@ void test1()
}
int main()
int main ATLAS_NOT_THREAD_SAFE ()
{
test1();
return 0;
......
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file ZdcEventTPCnv/test/ZdcRawChannelCnv_p1_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -13,6 +11,7 @@
#undef NDEBUG
#include "ZdcEventTPCnv/ZdcRawChannelCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
......@@ -44,7 +43,7 @@ void testit (const ZdcRawChannel& trans1)
}
void test1()
void test1 ATLAS_NOT_THREAD_SAFE ()
{
std::cout << "test1\n";
Athena_test::Leakcheck check;
......@@ -61,7 +60,7 @@ void test1()
}
int main()
int main ATLAS_NOT_THREAD_SAFE ()
{
test1();
return 0;
......
/*
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
*/
// $Id$
/**
* @file ZdcEventTPCnv/test/ZdcRawChannelCollectionCnv_p1_test.cxx
* @author scott snyder <snyder@bnl.gov>
......@@ -13,6 +11,7 @@
#undef NDEBUG
#include "ZdcEventTPCnv/ZdcRawChannelCollectionCnv_p1.h"
#include "CxxUtils/checker_macros.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
......@@ -53,7 +52,7 @@ void testit (const ZdcRawChannelCollection& trans1)
}
void test1()
void test1 ATLAS_NOT_THREAD_SAFE ()
{
std::cout << "test1\n";
Athena_test::Leakcheck check;
......@@ -75,7 +74,7 @@ void test1()
}
int main()
int main ATLAS_NOT_THREAD_SAFE ()
{
test1();
return 0;
......
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