qt5base-lts/tests/auto/corelib/io/qprocess
Christian Strømme 2223cc8a2d Add function to get the actual PID from QProcess
It was not possible to get the actual process ID (in a cross-platform
manner) from QProcess, as the user would need to handle the returned
typedef (Q_PID) differently on Unix and Windows.

On Unix Q_PID is the actual process ID, but on Windows it's a pointer
to a PROCESS_INFORMATION structure, which among other fields contains
the process ID. Instead of returning a pointer on Windows,
QProcess::processId() will return the actual process ID on both Windows
and Unix.

[ChangeLog][QtCore][QProcess] Added processId() to QProcess. This
function will, unlike pid(), return the actual process identifier on
both Window and Unix.

Task-number: QTBUG-26136
Change-Id: I853ab721297e2dd9cda006666144179a9e25b73d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-02-14 00:34:25 +01:00
..
fileWriterProcess Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test fix error handling bug in QWindowsPipeReader 2012-11-02 12:16:49 +01:00
testBatFiles Moving relevant tests to corelib/io 2011-08-31 10:08:38 +02:00
testDetached Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testExitCodes Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testForwarding add QProcess::InputChannelMode 2013-09-05 21:17:44 +02:00
testGuiProcess Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessCrash Make the null pointer dereference a volatile one 2013-01-29 01:47:01 +01:00
testProcessDeadWhileReading Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessEcho Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessEcho2 Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessEcho3 Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessEchoGui Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
testProcessEnvironment Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
testProcessEOF Replace win32-g++ with mingw scope 2014-01-17 12:08:24 +01:00
testProcessNormal qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
testProcessOutput qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
testProcessSpacesArgs qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
testSetNamedPipeHandleState QProcess/Win: allow child processes to change modes of the stdin pipe 2013-12-10 18:36:25 +01:00
testSetWorkingDirectory qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
testSoftExit Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
testSpaceInName qprocess autotests don't need QtGui 2013-02-09 18:44:41 +01:00
.gitignore test: Moving tst_QProcess::echoTest_performance() 2012-10-19 02:43:05 +02:00
qprocess.pri add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
qprocess.pro QProcess/Win: allow child processes to change modes of the stdin pipe 2013-12-10 18:36:25 +01:00
tst_qprocess.cpp Add function to get the actual PID from QProcess 2014-02-14 00:34:25 +01:00