diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-07-17 19:18:32 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-07-17 19:15:31 +0200 |
commit | 68a96f747345dd55bcb6abdd8eee0e2d9768c9ec (patch) | |
tree | 82dc96ea1ee20a8506c942b5b7b679fc849186c6 /desktop/source | |
parent | 2a20a894b0752e5b7f28547ed9a90570739e8bea (diff) |
Use IsRunningUnitTest / IsRunningUITest consistently
The functions are moved to o3tl as inline functions.
Change-Id: Ief7d7e292ef15e055ad04ab5707e5e6a2a05b916
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170636
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'desktop/source')
-rw-r--r-- | desktop/source/app/sofficemain.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx index 7e38ac2b2807..9470add3b488 100644 --- a/desktop/source/app/sofficemain.cxx +++ b/desktop/source/app/sofficemain.cxx @@ -30,6 +30,7 @@ #include <prewin.h> #if defined _WIN32 +#include <o3tl/test_info.hxx> #include <systools/win32/test_desktop.hxx> #endif @@ -57,7 +58,7 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main() { #if defined _WIN32 // If this is a UI test, we may need to switch to a dedicated desktop - if (getenv("LO_RUNNING_UI_TEST") != nullptr) + if (o3tl::IsRunningUITest()) sal::systools::maybeCreateTestDesktop(); #endif |