qt5base-lts/tests/auto/other
Friedemann Kleint 898ce1dcf5 networkselftest: Fix handling of the smbclient process.
When the server could not be reached, the test previously,
produced:

FAIL!  : tst_NetworkSelfTest::smbServer() 'smbclient.waitForFinished(5000)' returned FALSE. ()
-   Loc: [tst_networkselftest.cpp(992)]
QWARN  : tst_NetworkSelfTest::smbServer() QProcess: Destroyed while process ("smbclient") is still running.

Fix this by:
- Using QStandardPaths::findExecutable to locate the binary instead
  of test-wise starting it.
- Add a function to ensure process termination.
- Pass a timeout argument to smbclient and pass an interval
  depending on it to waitForFinished(), which should prevent
  having to kill the process in most cases.
- Add proper error message

Change-Id: I1cbc76ca69aec7d1e0e880685bed54b0ba7f21c7
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
2015-06-10 12:50:12 +00:00
..
android Update copyright headers 2015-02-11 06:49:51 +00:00
atwrapper Update copyright headers 2015-02-11 06:49:51 +00:00
compiler Update copyright headers 2015-02-11 06:49:51 +00:00
gestures Update copyright headers 2015-02-11 06:49:51 +00:00
lancelot Update copyright headers 2015-02-11 06:49:51 +00:00
languagechange Update copyright headers 2015-02-11 06:49:51 +00:00
macgui Update copyright headers 2015-02-11 06:49:51 +00:00
macnativeevents Tests: Use blacklist for failing tests in tst_macnativevents 2015-04-17 14:07:14 +00:00
macplist Update copyright headers 2015-02-11 06:49:51 +00:00
modeltest Update copyright headers 2015-02-11 06:49:51 +00:00
networkselftest networkselftest: Fix handling of the smbclient process. 2015-06-10 12:50:12 +00:00
qaccessibility Remove unused function 2015-04-20 20:07:47 +00:00
qaccessibilitylinux Update copyright headers 2015-02-11 06:49:51 +00:00
qaccessibilitymac OS X Accessibility: Make checkboxes etc. checkable with VoiceOver 2015-03-25 09:48:43 +00:00
qcomplextext Update copyright headers 2015-02-11 06:49:51 +00:00
qfocusevent Update copyright headers 2015-02-11 06:49:51 +00:00
qnetworkaccessmanager_and_qprogressdialog Update copyright headers 2015-02-11 06:49:51 +00:00
qobjectperformance Update copyright headers 2015-02-11 06:49:51 +00:00
qobjectrace Update copyright headers 2015-02-11 06:49:51 +00:00
qprocess_and_guieventloop Update copyright headers 2015-02-11 06:49:51 +00:00
qsharedpointer_and_qwidget Update copyright headers 2015-02-11 06:49:51 +00:00
qtokenautomaton Update copyright headers 2015-02-11 06:49:51 +00:00
qvariant_common Update copyright headers 2015-02-11 06:49:51 +00:00
toolsupport Update copyright headers 2015-02-11 06:49:51 +00:00
windowsmobile Update copyright headers 2015-02-11 06:49:51 +00:00
other.pro Remove test other/baselineexample. 2015-05-27 14:11:22 +00:00