Added try...catch around TSS initialisation.

[SVN r41301]
This commit is contained in:
John Maddock
2007-11-22 09:59:38 +00:00
parent d3d99ef6f8
commit cf876f58f0

View File

@ -70,7 +70,14 @@ void run_tests()
int cpp_main(int /*argc*/, char * /*argv*/[])
{
#ifdef TEST_THREADS
get_array_data(); // initialises data.
try{
get_array_data(); // initialises data.
}
catch(const std::exception& e)
{
std::cerr << "TSS Initialisation failed with message: " << e.what() << std::endl;
return -1;
}
std::list<boost::shared_ptr<boost::thread> > threads;
for(int i = 0; i < 5; ++i)