Avoid checking the protoc availablity when crosscompiling

Move the protocolCompilerAvailableToRun check under the
SKIP_COMMAND_LINE_TESTS guard.

Pick-to: 6.9 6.8
Change-Id: Ibd2ce706e7d73d368a89f9f486f3f2fc0f59e7e4
Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
(cherry picked from commit 76f8c2ffb8)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Alexey Edelev 2025-09-02 17:39:23 +02:00 committed by Qt Cherry-pick Bot
parent 39db74769a
commit 2ae363a804
1 changed files with 1 additions and 1 deletions

View File

@ -92,8 +92,8 @@ void qtprotobufgenTest::initTestCase()
QVERIFY(!cmakeGeneratedPath().isEmpty());
#if !defined(SKIP_COMMAND_LINE_TESTS)
QVERIFY(!cmdLineGeneratedPath().isEmpty());
#endif
QVERIFY(protocolCompilerAvailableToRun(ProtocPath));
#endif
}
void qtprotobufgenTest::cmakeGenerated_data()