TestLib: Fix eager optional dereference in initIntegrationTestCase


QVERIFY2 evaluates its message argument eagerly, so
.arg(*intended, ...) dereferenced a disengaged optional
whenever initIntegrationTestMain() was not called (i.e. every
QTEST_MAIN integration test). Debug builds abort there;
release builds read garbage into a discarded string.

Resolve the expected backend name with value_or() first.

Pick-to: 6.12
Change-Id: Ia7592f387259d47d6ba2102cb5aa83b4e68b6422
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
commitd4290004baa42dce85082e5fbe21f8af9ee9944e
parent8cc1d686c170186018a66dca8bb56bdd953f3ad6
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeThu, 15 Oct 2026 09:19:02 +0000