From 7a9152f48f231ca45fb8e4e400057800c5592756 Mon Sep 17 00:00:00 2001 From: sln Date: Thu, 13 Sep 2012 06:15:45 +0000 Subject: [PATCH] Batch mode for DIAGRAM unit tests --- src/SUIT/SUIT_Application.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); + } } /*! -- 2.39.2