Skip to content
Snippets Groups Projects
Commit 95a147de authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

CHOP-900: Fix test.cpp merge errors merging up to viewer-release

parent a5b0147d
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
#pragma warning (pop) #pragma warning (pop)
#endif #endif
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp> #include <boost/make_shared.hpp>
#include <boost/foreach.hpp> #include <boost/foreach.hpp>
...@@ -147,17 +148,16 @@ class LLTestCallback : public tut::callback ...@@ -147,17 +148,16 @@ class LLTestCallback : public tut::callback
public: public:
LLTestCallback(bool verbose_mode, std::ostream *stream, LLTestCallback(bool verbose_mode, std::ostream *stream,
boost::shared_ptr<LLReplayLog> replayer) : boost::shared_ptr<LLReplayLog> replayer) :
mVerboseMode(verbose_mode), mVerboseMode(verbose_mode),
mTotalTests(0), mTotalTests(0),
mPassedTests(0), mPassedTests(0),
mFailedTests(0), mFailedTests(0),
mSkippedTests(0), mSkippedTests(0),
// By default, capture a shared_ptr to std::cout, with a no-op "deleter" // By default, capture a shared_ptr to std::cout, with a no-op "deleter"
// so that destroying the shared_ptr makes no attempt to delete std::cout. // so that destroying the shared_ptr makes no attempt to delete std::cout.
mStream(boost::shared_ptr<std::ostream>(&std::cout, boost::lambda::_1)), mStream(boost::shared_ptr<std::ostream>(&std::cout, boost::lambda::_1)),
mReplayer(replayer) mReplayer(replayer)
if (stream) {
{
if (stream) if (stream)
{ {
// We want a boost::iostreams::tee_device that will stream to two // We want a boost::iostreams::tee_device that will stream to two
...@@ -593,11 +593,11 @@ int main(int argc, char **argv) ...@@ -593,11 +593,11 @@ int main(int argc, char **argv)
LLTestCallback* mycallback; LLTestCallback* mycallback;
if (getenv("TEAMCITY_PROJECT_NAME")) if (getenv("TEAMCITY_PROJECT_NAME"))
{ {
mycallback = new LLTCTestCallback(verbose_mode, output, replayer); mycallback = new LLTCTestCallback(verbose_mode, output.get(), replayer);
} }
else else
{ {
mycallback = new LLTestCallback(verbose_mode, output, replayer); mycallback = new LLTestCallback(verbose_mode, output.get(), replayer);
} }
tut::runner.get().set_callback(mycallback); tut::runner.get().set_callback(mycallback);
......
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