mirror of https://github.com/davisking/dlib.git
changed test to avoid compiler error in gcc 4.8
This commit is contained in:
parent
3406a290bc
commit
24698f87ce
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue