Skip to content

Commit 9fe08fa

Browse files
committed
Renamed catch2 test files in DataFormats/Common
1 parent 8d5631e commit 9fe08fa

21 files changed

+3
-9
lines changed

DataFormats/Common/test/BuildFile.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<bin name="testDataFormatsCommon" file="testRunner.cpp,testOwnVector.cc,testOneToOneAssociation.cc,testValueMap.cc,testOneToManyAssociation.cc,testAssociationVector.cc,testAssociationNew.cc,testValueMapNew.cc,testSortedCollection.cc,testRangeMap.cc,ref_t.cppunit.cc,DetSetRefVector_t.cppunit.cc,reftobasevector_t.cppunit.cc,cloningptr_t.cppunit.cc,ptr_t.cppunit.cc,ptrvector_t.cppunit.cc,containermask_t.cppunit.cc,reftobaseprod_t.cppunit.cc,handle_t.cppunit.cc">
1515
</bin>
1616

17-
<bin name="testDataFormatsCommonCatch2" file="DetSetVector_t.cpp,DetSetVectorWithKey_t.cpp,exDSTV.cpp,exTrie.cpp,OwnVector_t.cpp,Wrapper_t.cpp,testBoostRange.cpp,reftobase_t.cpp,Ref_t.cpp,RefCore_t.cpp,StdArray_t.cpp,ThinnedRefSet_t.cpp,traits_t.cpp,RefVector_t.cpp,DataFrame_t.cpp,DictionaryTools_t.cpp,MapOfVectors_t.cpp,Trie_t.cpp,DetSetNew_t.cpp,DetSetNewTS_t.cpp">
17+
<bin name="testDataFormatsCommonCatch2" file="test_catch2_*.cpp">
1818
<use name="catch2"/>
1919
</bin>
2020

File renamed without changes.
File renamed without changes.

DataFormats/Common/test/DetSetNew_t.cpp renamed to DataFormats/Common/test/test_catch2_DetSetNew.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,7 @@ TEST_CASE("DetSetNew", "[DetSetNew]") {
286286
}
287287
REQUIRE(detsets.size() == 5);
288288
REQUIRE(!detsets.exists(31));
289-
{
290-
FF ff1(detsets, 32, true);
291-
}
289+
{ FF ff1(detsets, 32, true); }
292290
REQUIRE(detsets.size() == 6);
293291

294292
DSTV detsets2(detsets);

DataFormats/Common/test/DetSetNewTS_t.cpp renamed to DataFormats/Common/test/test_catch2_DetSetNewTS.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ class TestDetSet {
2727
};
2828

2929
namespace {
30-
namespace global {
31-
Mutex coutLock;
32-
}
33-
3430
template <typename T>
3531
inline void spinlock(std::atomic<T> const& lock, T val) {
3632
while (lock.load(std::memory_order_acquire) != val) {
@@ -204,7 +200,7 @@ TEST_CASE("DetSetNewTS", "[DetSetNewTS]") {
204200
REQUIRE(maxDet == int(detsets.size()));
205201
std::atomic<int> lock(0);
206202
std::atomic<int> idet(0);
207-
std::atomic<int> count(0);
203+
//std::atomic<int> count(0);
208204
DST df31 = detsets[31];
209205
//std::cout << "start parallel section" << std::endl;
210206
parallel_run([&lock, &detsets, &idet, maxDet, &g](unsigned int threadNumber, unsigned int numberOfThreads) {
File renamed without changes.

DataFormats/Common/test/DetSetVectorWithKey_t.cpp renamed to DataFormats/Common/test/test_catch2_DetSetVectorWithKey_t.cpp

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)