tests(grpcquick): fix when:false hang in QML test cases
TestCases using `when: false` hang indefinitely when qt-testrunner
re-runs a failing function in isolation, since the TestCase that fires
the RPC and sets `when = true` never executes. Replace the split
start/check pattern with self-contained test functions using tryVerify.
Also add a qmlEngineAvailable() to the unarycall_qml test-case. Other
testcases where already doing that but it was missing for the unary
test. Drop the unused 'testMessageLatency' context property in the
unarycall_qml setup (only 'testMessageLatencyWithThreshold' is used in
QML).
As a drive-by rename the m_serverProccess member to m_serverProcess in
the affected test cases to fix the pre-existing typo.
Task-number: QTBUG-145758
Task-number: QTBUG-145588
Task-number: QTBUG-145587
Task-number: QTBUG-145586
Pick-to: 6.11 6.8
Change-Id: Ia92f534f584f4056271bc9d8ed8efc3ab60edf17
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
| commit | 0b96a6d003eee49bbcac7d0538f9258d4a196d96 |
| parent | 77b2b39ea55d18ac866817d707e4d3442ae21ed6 |
| author | Dennis Oberst <dennis.oberst@qt.io> |
| committer | Dennis Oberst <dennis.oberst@qt.io> |
| commit time | Mon, 1 Jun 2026 14:54:56 +0000 |
- M tests/auto/grpc/client/shared/client_test_common/grpcclienttestbase.cpp
- M tests/auto/grpc/client/shared/client_test_common/grpcclienttestbase.h
- M tests/auto/grpcquick/client/bidistream/qml/tst_grpc_client_bidistream.qml
- M tests/auto/grpcquick/client/bidistream/tst_grpc_client_bidistream_qml.cpp
- M tests/auto/grpcquick/client/clientstream/qml/tst_grpc_client_clientstream.qml
- M tests/auto/grpcquick/client/clientstream/tst_grpc_client_clientstream_qml.cpp
- M tests/auto/grpcquick/client/serverstream/qml/tst_grpc_client_serverstream.qml
- M tests/auto/grpcquick/client/serverstream/tst_grpc_client_serverstream_qml.cpp
- M tests/auto/grpcquick/client/unarycall/qml/tst_grpc_client_unarycall.qml
- M tests/auto/grpcquick/client/unarycall/tst_grpc_client_unarycall_qml.cpp