mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-03 22:35:45 +02:00
tests: Fix WITH_WEBENGINE check.
Use #if, not #ifdef, to test the integer value of WITH_WEBENGINE, not just whether it's defined. Otherwise, -DWITH_WEBENGINE=OFF would not work. * tests/qml/main.cpp: Replace '#ifdef WITH_WEBENGINE' with '#if WITH_WEBENGINE'. Change-Id: Ieda8c46fa696afa1e4118acc7d4fecd4b7f9a171
This commit is contained in:
parent
a51078c900
commit
6ffdda7b81
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@
|
|||
#include <QtQuickTest/quicktest.h>
|
||||
#include <QSignalSpy>
|
||||
|
||||
#ifdef WITH_WEBENGINE
|
||||
#if WITH_WEBENGINE
|
||||
#include <QtWebEngineCore>
|
||||
#include <QtWebEngineQuick>
|
||||
#endif
|
||||
|
@ -206,7 +206,7 @@ main(int argc, char** argv)
|
|||
// Allow the user to enable fatal warnings for certain tests.
|
||||
Utils::remove_argument(argv, argc, "--failonwarn", [&]() { qputenv("QT_FATAL_WARNINGS", "1"); });
|
||||
|
||||
#ifdef WITH_WEBENGINE
|
||||
#if WITH_WEBENGINE
|
||||
QtWebEngineQuick::initialize();
|
||||
#endif
|
||||
QTEST_SET_MAIN_SOURCE_PATH
|
||||
|
|
Loading…
Add table
Reference in a new issue