Commit 47f0f8c9 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Fixed crashing test-campvis on GCC/Linux.

parent ab290c65
......@@ -88,15 +88,19 @@ GTEST_API_ int main(int argc, char **argv) {
int ret;
std::thread testThread([&] () {
cgt::GLContextScopedLock lock(_localContext);
ret= RUN_ALL_TESTS();
{
cgt::GLContextScopedLock lock(_localContext);
ret= RUN_ALL_TESTS();
}
deinit();
app->exit();
});
app->exec();
deinit();
testThread.join();
delete app;
printf("main() returned with %d\n", ret);
return 0;
return ret;
}
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