~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to unittests/main.cc

  • Committer: Brian Aker
  • Date: 2011-12-25 02:34:26 UTC
  • mto: (2478.1.1 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2482.
  • Revision ID: brian@tangent.org-20111225023426-tf2u6463ct5cw5yf
Go back to a single main, for now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#define BOOST_TEST_MAIN
23
23
#include <boost/test/unit_test.hpp>
24
24
#include <iostream>
25
 
#include <google/protobuf/stubs/common.h>
26
25
 
27
26
struct MyConfig
28
27
{
29
 
    MyConfig()
30
 
    {
31
 
       boost::unit_test::unit_test_log.set_threshold_level(boost::unit_test::log_messages);
32
 
    }
 
28
  MyConfig()
 
29
  {
 
30
    boost::unit_test::unit_test_log.set_threshold_level(boost::unit_test::log_nothing);
 
31
    boost::unit_test::unit_test_log.set_format(boost::unit_test::CLF);
 
32
  }
33
33
 
34
 
    ~MyConfig()
35
 
    {
36
 
#if GOOGLE_PROTOBUF_VERSION >= 2001000
37
 
      google::protobuf::ShutdownProtobufLibrary();
38
 
#endif
39
 
    }
 
34
  ~MyConfig()
 
35
  {
 
36
  }
40
37
};
41
38
 
42
39
BOOST_GLOBAL_FIXTURE( MyConfig )