diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-09-09 13:54:03 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-09-09 17:12:23 +0000 |
commit | 3713120cc8b7f8a95aa670d759b8f9ed3b72425a (patch) | |
tree | b0c1f02b97b5a42574d13cd7dc3bb633ed685c5d /src/qmltest | |
parent | 36d95bd2abb5737dff9837526ccff2c2104fa9e9 (diff) |
Indicate that QuickTestLib is running
QTestLib already sets this environment variable to indicate that
the code is running on a test environment. Do the same for QuickTest
too.
Change-Id: I597237fcd16dc568b750bdef325881e808c407eb
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/qmltest')
-rw-r--r-- | src/qmltest/quicktest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qmltest/quicktest.cpp b/src/qmltest/quicktest.cpp index 5e9712d202..c90308cf1a 100644 --- a/src/qmltest/quicktest.cpp +++ b/src/qmltest/quicktest.cpp @@ -315,6 +315,8 @@ int quick_test_main(int argc, char **argv, const char *name, const char *sourceD return 1; } + qputenv("QT_QTESTLIB_RUNNING", "1"); + // Register the test object qmlRegisterSingletonType<QTestRootObject>("Qt.test.qtestroot", 1, 0, "QTestRootObject", testRootObject); // Scan through all of the "tst_*.qml" files and run each of them |