Commit a4a27beb authored by Martin Marinov's avatar Martin Marinov
Browse files

Fix compilation errors when DEB_ON is not defined and TEST_ON is defined

parent 0b9a8d0a
......@@ -92,6 +92,8 @@ Difference Object::compare(
void Object::add(const Result& _rslt, const String& _data)
{
static Base::OutputStreamAdaptT<std::ofstream> test_str(REPORT_FILENAME);
#ifdef DEB_ON
static String prev_call_stck;
String call_stck("/");
......@@ -101,6 +103,7 @@ void Object::add(const Result& _rslt, const String& _data)
test_str << call_stck << Base::LF;
prev_call_stck = call_stck;
}
#endif//DEB_ON
test_str << _rslt << " " << name() << ": " << _data << Base::LF;
}
......
......@@ -178,6 +178,7 @@ const Registry& registry();
}//namespace Checksum
}//namespace Test
#define TEST_only(CC) CC
#endif//TEST_ON
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment