Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit e1df8023 authored by kraus's avatar kraus
Browse files

fixing error in unit tests

parent 5bfab6e6
No related branches found
No related tags found
No related merge requests found
......@@ -48,12 +48,21 @@ Inform *IpplInfo::Warn = 0;
Inform *IpplInfo::Error = 0;
Inform *IpplInfo::Debug = 0;
// Communicate *IpplInfo::Comm = new Communicate();
// IpplStats *IpplInfo::Stats = new IpplStats();
// Inform *IpplInfo::Info = new Inform("Ippl");
// Inform *IpplInfo::Warn = new Inform("Warning", std::cerr);
// Inform *IpplInfo::Error = new Inform("Error", std::cerr, INFORM_ALL_NODES);
// Inform *IpplInfo::Debug = new Inform("**DEBUG**", std::cerr, INFORM_ALL_NODES);
void IpplInfo::instantiateGlobals() {
if (Comm == 0)
Comm = new Communicate();
if (Stats == 0)
Stats = new IpplStats();
if (Info == 0)
Info = new Inform("Ippl");
if (Warn == 0)
Warn = new Inform("Warning", std::cerr);
if (Error == 0)
Error = new Inform("Error", std::cerr, INFORM_ALL_NODES);
if (Debug == 0)
Debug = new Inform("**DEBUG**", std::cerr, INFORM_ALL_NODES);
}
std::stack<StaticIpplInfo> IpplInfo::stashedStaticMembers;
//dks base member of IpplInfo initialized to default values
......
......@@ -319,6 +319,7 @@ public:
// print out statistics to the given Inform stream
static void printStatistics(Inform&);
static void instantiateGlobals();
private:
static MPI_Comm communicator_m;
......
#include "opal_test_utilities/SilenceTest.h"
#include "Utility/IpplInfo.h"
std::streambuf *OpalTestUtilities::SilenceTest::_defaultCout = NULL;
std::streambuf *OpalTestUtilities::SilenceTest::_defaultCerr = NULL;
OpalTestUtilities::SilenceTest::SilenceTest():
_failed(false) {
IpplInfo::instantiateGlobals();
if (_defaultCout == NULL ) {
_defaultCout = std::cout.rdbuf();
_defaultCerr = std::cerr.rdbuf();
......
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