forked from qt-creator/qt-creator
extend_qtc_test should gracefully do nothing if the test was declared, but disabled for any reason. add_qtc_test failed to add the test to the list of declared tests, if dependencies were missing, so extend_qtc_test was complaining that the test didn't exist in that case. add_qtc_test must always add the test to the list of declared tests, and extend_qtc_test must only fail if the test was never declared, but do nothing if the test target does not exist (because the test was disabled for some reason). Change-Id: I414a169e3e23c3c0e11c11e2ee86effa706b545c Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>