Commit 24698f87 authored by Davis King's avatar Davis King

changed test to avoid compiler error in gcc 4.8

parent 3406a290
......@@ -183,7 +183,9 @@ namespace
DLIB_TEST(is_running() == false);
}
~test4_c2() throw (std::exception)
~test4_c2()
{
try
{
DLIB_TEST(number_of_threads_registered() == 2);
DLIB_TEST(number_of_threads_alive() == 2);
......@@ -196,6 +198,12 @@ namespace
DLIB_TEST(number_of_threads_alive() == 0);
DLIB_TEST(is_running() == false);
}
catch(std::exception& e)
{
std::cerr << e.what() << std::endl;
exit(1);
}
}
private:
......
Markdown is supported
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