Only attempt to load QML test cases from source directory if it exists.
authorAaron McCarthy <aaron.mccarthy@nokia.com>
Mon, 27 Feb 2012 01:11:10 +0000 (11:11 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 13 Mar 2012 04:13:50 +0000 (05:13 +0100)
commit340c479bb17c8c14013cedd7c8eece30bf206c89
treeddabf7d901e3063f8bf4b35054767f6cdc39d878
parent656d1a147db433518236ad886074d27ed20e70ec
Only attempt to load QML test cases from source directory if it exists.

When running installed unit tests the QML test cases are likely not
in the source directory, but in the same directory as the installed
test binary.  If the source directory does not exist, fall back to
searching for QML test cases in the current directory.

Change-Id: I231b9cd49b12d88dd6cfbcc8dfb8b6c2c69d5aad
Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
src/qmltest/quicktest.cpp