mirror of https://github.com/CGAL/cgal
Suppress drawing when runing ctest
This commit is contained in:
parent
2046b32e80
commit
93d5fecf1c
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue