Stabilize QFileSystemWatcher test.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Tue, 14 Feb 2012 14:52:49 +0000 (15:52 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 15 Feb 2012 07:59:34 +0000 (08:59 +0100)
commit0f0d8a5a8fecf545cdf58ab50d05253ffd20e90b
tree94d02c4c3f0540a7277474ed95cbedb36a6d8e08
parent752a02143b8b29bfde40d1e70482bc051457f251
Stabilize QFileSystemWatcher test.

- Run each test in a temporary directory, avoid writing test
  files in source/build tree and prevents tests being influenced
  by left-overs from previous runs and locks of the application
  on the current directory.
- Modify test to be able to use absolute paths to the temporary
  directory.
- Skip parts of test removeFileAndUnWatch if a race condition
  occurs.

Task-number: QTBUG-24029
Change-Id: I215cc2e0fe6f92d2ffe597b01cdc9c9a39e3c5b4
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
tests/auto/corelib/io/qfilesystemwatcher/qfilesystemwatcher.pro
tests/auto/corelib/io/qfilesystemwatcher/tst_qfilesystemwatcher.cpp