tst_QCoreApplication: fix the QT_PLUGIN_PATH tests on Android


The two tests set QT_PLUGIN_PATH and left it set, and Android
finds its platform plugin only through the library paths, so
later tests that create an application failed. Restore the
variable when each test ends.

libraryPaths_qt_plugin_path_2() also used /tmp as its valid
path, which Android 13 and older don't have. Use the temp
path instead.

Pick-to: 6.12
Change-Id: I5a615e6d8fdbbfca9d5e8f00f30744556e1c62f2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
commit3b30461be57d207f6eb0c857248ddb4ac4ffb81e
parent81ca4f294d8738b793cf5ab6248a03840f3fe21a
authorAssam Boudjelthia <assam.boudjelthia@qt.io>
committerAssam Boudjelthia <assam.boudjelthia@qt.io>
commit timeTue, 20 Oct 2026 10:41:23 +0000