summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qprocess/testDetached/main.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2016-06-01 09:41:15 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2017-03-31 17:37:30 +0000
commit6ba8708a2fdec666172446783a7ff292cd454055 (patch)
tree578c23babbc6da2622efd86d7d2282f26a83c7bf /tests/auto/corelib/io/qprocess/testDetached/main.cpp
parent28666d167aa8e602c0bea25ebc4d51b55005db13 (diff)
QProcess::startDetached: support custom process environment
Starting a detached process with a custom process environment can now be achieved by: QProcess p; p.setProgram("foo"); p.setProcessEnvironment(myEnv); p.startDetached(); [ChangeLog][QtCore][QProcess] Added the ability to set a custom process environment for detached processes. Task-number: QTBUG-2284 Change-Id: I49406dffb64fa2aed41ea05cb271bd42eeabb729 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/io/qprocess/testDetached/main.cpp')
-rw-r--r--tests/auto/corelib/io/qprocess/testDetached/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qprocess/testDetached/main.cpp b/tests/auto/corelib/io/qprocess/testDetached/main.cpp
index 702cabe873..c970ce5aa0 100644
--- a/tests/auto/corelib/io/qprocess/testDetached/main.cpp
+++ b/tests/auto/corelib/io/qprocess/testDetached/main.cpp
@@ -65,6 +65,8 @@ int main(int argc, char **argv)
f.write(QByteArray::number(quint64(GetCurrentProcessId())));
#endif
f.putChar('\n');
+ f.write(qgetenv("tst_QProcess"));
+ f.putChar('\n');
f.close();