Skip to content
Snippets Groups Projects
Commit 6c47a8b3 authored by Scott Snyder's avatar Scott Snyder Committed by Graeme Stewart
Browse files

Add leak checking to unit tests. (EventBookkeeperTPCnv-00-01-14)

	* Tagging EventBookkeeperTPCnv-00-01-14.
	* Add leak checking to unit tests.

2016-08-11  scott snyder  <snyder@bnl.gov>

	* Tagging EventBookkeeperTPCnv-00-01-13.
	* endreq -> endmsg.
parent 82e1c30e
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@
#include "EventBookkeeperTPCnv/EventBookkeeperCnv_p1.h"
void EventBookkeeperCnv_p1::transToPers(const EventBookkeeper* trans, EventBookkeeper_p1* pers, MsgStream &log) {
log << MSG::ERROR << "EventBookkeeperCnv_p1::transToPers should never be called. There is a mistake." << endreq;
log << MSG::ERROR << "EventBookkeeperCnv_p1::transToPers should never be called. There is a mistake." << endmsg;
pers->m_nWeightedAcceptedEvents = trans->getNWeightedAcceptedEvents();
pers->m_nAcceptedEvents = trans->getNAcceptedEvents();
pers->m_cycle = trans->getCycle();
......
......@@ -15,6 +15,7 @@
#include "EventBookkeeperTPCnv/EventBookkeeperCnv_p1.h"
#include "CxxUtils/StrFormat.h"
#include "CxxUtils/make_unique.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
......@@ -76,6 +77,7 @@ std::unique_ptr<EventBookkeeper> make (int o)
void test1()
{
std::cout << "test1\n";
Athena_test::Leakcheck check;
std::unique_ptr<EventBookkeeper> trans1 = make(1);
trans1->AddChild (make(2).release());
......
......@@ -15,6 +15,7 @@
#include "EventBookkeeperTPCnv/EventBookkeeperCnv_p2.h"
#include "CxxUtils/StrFormat.h"
#include "CxxUtils/make_unique.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
......@@ -73,6 +74,7 @@ std::unique_ptr<EventBookkeeper> make (int o)
void test1()
{
std::cout << "test1\n";
Athena_test::Leakcheck check;
std::unique_ptr<EventBookkeeper> trans1 = make(1);
trans1->AddChild (make(2).release());
......
......@@ -14,6 +14,7 @@
#undef NDEBUG
#include "EventBookkeeperTPCnv/SkimDecisionCnv_p1.h"
#include "CxxUtils/StrFormat.h"
#include "TestTools/leakcheck.h"
#include <cassert>
#include <iostream>
......@@ -42,6 +43,7 @@ void testit (const SkimDecision& trans1)
void test1()
{
std::cout << "test1\n";
Athena_test::Leakcheck check;
SkimDecision trans1;
trans1.setName ("foo");
......
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