#pragma warning(disable:4244) // conversion from 'const int' to 'const short'
#endif
-#include "boost/test/minimal.hpp"
+#include "boost/core/lightweight_test.hpp"
#include "boost/variant.hpp"
#include "jobs.h"
static void remove(const jas& j)
{
iterator_type iter = s_this_to_sn_.find(&j);
- BOOST_CHECK(iter != s_this_to_sn_.end());
- BOOST_CHECK( ((*iter).second) == j.sn_);
+ BOOST_TEST(iter != s_this_to_sn_.end());
+ BOOST_TEST( ((*iter).second) == j.sn_);
int sn = (*iter).second;
if(sn != j.sn_)
<< ", other: this = " << &j << ", j.sn_ = " << j.sn_ << endl;
}
- BOOST_CHECK(sn == j.sn_);
+ BOOST_TEST(sn == j.sn_);
static void check()
{
- BOOST_CHECK(s_this_to_sn_.empty());
+ BOOST_TEST(s_this_to_sn_.empty());
}
};
compare_helper<ExpectedType> ch(expected);
bool checks = boost::apply_visitor(ch, v);
- BOOST_CHECK(checks);
+ BOOST_TEST(checks);
}
}
-int test_main(int , char* [])
+int main()
{
run();
Tracker::check();
- return 0;
+ return boost::report_errors();
}