summaryrefslogtreecommitdiffstats
path: root/src/testlib
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2014-10-23 15:40:55 +0200
committerLaszlo Agocs <laszlo.agocs@digia.com>2014-10-24 20:41:20 +0200
commitddf3fc0deb906ee591fc01ecc2a74768a49950f8 (patch)
tree342c2dadfc0c8ecb678bf8c462a398ace7493ba5 /src/testlib
parent929509ea03b116588bdae38391377ec1ec976845 (diff)
Indicate that QTestLib is running
Set QT_QTESTLIB_RUNNING=1 on QTestLib startup. This allows Qt to adapt its behavior to the testing environment, WHICH IS NORMALLY NOT SOMETHING YOU WANT TO DO. Use with caution. Change-Id: I31de80e7c2cc91ff1ed8137926e6b729ef6efdc6 Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/testlib')
-rw-r--r--src/testlib/qtestcase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index b3b206bfc9..2d92b3f6bd 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -2367,6 +2367,7 @@ static LONG WINAPI windowsFaultHandler(struct _EXCEPTION_POINTERS *exInfo)
static void initEnvironment()
{
qputenv("QT_LOGGING_TO_CONSOLE", "1");
+ qputenv("QT_QTESTLIB_RUNNING", "1");
}
/*!