From: sln Date: Thu, 13 Sep 2012 06:15:45 +0000 (+0000) Subject: Batch mode for DIAGRAM unit tests X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a9152f48f231ca45fb8e4e400057800c5592756;p=modules%2Fgui.git Batch mode for DIAGRAM unit tests --- diff --git a/src/SUIT/SUIT_Application.cxx b/src/SUIT/SUIT_Application.cxx index 0a7b9ecf3..e4bf4f882 100755 --- a/src/SUIT/SUIT_Application.cxx +++ b/src/SUIT/SUIT_Application.cxx @@ -118,7 +118,11 @@ QString SUIT_Application::applicationVersion() const void SUIT_Application::start() { if ( desktop() ) - desktop()->show(); + { + // sln: BATCH_MODE is used to launch application without desktop for automatic tests + if ( !getenv( "SALOME_BATCH_MODE" ) ) + desktop()->show(); + } } /*!