diff --git a/Arrangement_on_surface_2/include/CGAL/draw_arrangement_2.h b/Arrangement_on_surface_2/include/CGAL/draw_arrangement_2.h index b011a3ae528..d9e8f7c8189 100644 --- a/Arrangement_on_surface_2/include/CGAL/draw_arrangement_2.h +++ b/Arrangement_on_surface_2/include/CGAL/draw_arrangement_2.h @@ -359,18 +359,25 @@ public: template void draw(const Arrangement_2& arr, const char* title = "2D Arrangement Basic Viewer") { - typedef GeometryTraits_2 Gt; +#if defined(CGAL_TEST_SUITE) + bool cgal_test_suite=true; +#else + bool cgal_test_suite=qEnvironmentVariableIsSet("CGAL_TEST_SUITE"); +#endif - CGAL::Qt::init_ogl_context(4,3); + if (!cgal_test_suite) { + typedef GeometryTraits_2 Gt; - int argc = 1; - const char* argv[2] = {"t2_viewer", nullptr}; - QApplication app(argc, const_cast(argv)); - Arr_2_viewer_qt mainwindow(app.activeWindow(), arr, title); - mainwindow.add_elements(); - mainwindow.show(); + CGAL::Qt::init_ogl_context(4,3); - app.exec(); + int argc = 1; + const char* argv[2] = {"t2_viewer", nullptr}; + QApplication app(argc, const_cast(argv)); + Arr_2_viewer_qt mainwindow(app.activeWindow(), arr, title); + mainwindow.add_elements(); + mainwindow.show(); + app.exec(); + } } }