Suppress drawing when runing ctest

This commit is contained in:
Efi Fogel 2025-09-28 09:16:12 +03:00
parent 2046b32e80
commit 93d5fecf1c
1 changed files with 8 additions and 0 deletions

View File

@ -748,6 +748,14 @@ void draw(const Arrangement& arr,
const GSOptions& gso, const GSOptions& gso,
const char* title = "2D Arrangement on Surface Viewer", const char* title = "2D Arrangement on Surface Viewer",
Bbox_2 initial_bbox = Bbox_2(0, 0, 0, 0)) { Bbox_2 initial_bbox = Bbox_2(0, 0, 0, 0)) {
#if defined(CGAL_TEST_SUITE)
bool cgal_test_suite = true;
#else
bool cgal_test_suite = qEnvironmentVariableIsSet("CGAL_TEST_SUITE");
#endif
if (cgal_test_suite) return;
Qt::init_ogl_context(4, 3); Qt::init_ogl_context(4, 3);
int argc; int argc;
QApplication app(argc, nullptr); QApplication app(argc, nullptr);