mirror of https://github.com/CGAL/cgal
Added code to prevent blocking when running the test suite
This commit is contained in:
parent
6b1315b620
commit
627c8d5953
|
|
@ -359,6 +359,13 @@ public:
|
||||||
template <typename GeometryTraits_2, typename Dcel>
|
template <typename GeometryTraits_2, typename Dcel>
|
||||||
void draw(const Arrangement_2<GeometryTraits_2, Dcel>& arr,
|
void draw(const Arrangement_2<GeometryTraits_2, Dcel>& arr,
|
||||||
const char* title = "2D Arrangement Basic Viewer") {
|
const char* title = "2D Arrangement Basic Viewer") {
|
||||||
|
#if defined(CGAL_TEST_SUITE)
|
||||||
|
bool cgal_test_suite=true;
|
||||||
|
#else
|
||||||
|
bool cgal_test_suite=qEnvironmentVariableIsSet("CGAL_TEST_SUITE");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
if (!cgal_test_suite) {
|
||||||
typedef GeometryTraits_2 Gt;
|
typedef GeometryTraits_2 Gt;
|
||||||
|
|
||||||
CGAL::Qt::init_ogl_context(4,3);
|
CGAL::Qt::init_ogl_context(4,3);
|
||||||
|
|
@ -369,8 +376,8 @@ void draw(const Arrangement_2<GeometryTraits_2, Dcel>& arr,
|
||||||
Arr_2_viewer_qt<Gt, Dcel> mainwindow(app.activeWindow(), arr, title);
|
Arr_2_viewer_qt<Gt, Dcel> mainwindow(app.activeWindow(), arr, title);
|
||||||
mainwindow.add_elements();
|
mainwindow.add_elements();
|
||||||
mainwindow.show();
|
mainwindow.show();
|
||||||
|
|
||||||
app.exec();
|
app.exec();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue