mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-19 14:45:08 +01:00
qt6, test: Use qWarning()
instead of QWARN()
macro
The `QWARN()` macro internally uses `QTest::qWarn()`, which has been deprecated since Qt 6.3. Replacing it with `qWarning()` ensures compatibility across all Qt versions.
This commit is contained in:
parent
d812cf1189
commit
cb750b4b40
@ -222,8 +222,8 @@ void AddressBookTests::addressBookTests()
|
||||
// framework when it tries to look up unimplemented cocoa functions,
|
||||
// and fails to handle returned nulls
|
||||
// (https://bugreports.qt.io/browse/QTBUG-49686).
|
||||
QWARN("Skipping AddressBookTests on mac build with 'minimal' platform set due to Qt bugs. To run AppTests, invoke "
|
||||
"with 'QT_QPA_PLATFORM=cocoa test_bitcoin-qt' on mac, or else use a linux or windows build.");
|
||||
qWarning() << "Skipping AddressBookTests on mac build with 'minimal' platform set due to Qt bugs. To run AppTests, invoke "
|
||||
"with 'QT_QPA_PLATFORM=cocoa test_bitcoin-qt' on mac, or else use a linux or windows build.";
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
@ -60,8 +60,8 @@ void AppTests::appTests()
|
||||
// framework when it tries to look up unimplemented cocoa functions,
|
||||
// and fails to handle returned nulls
|
||||
// (https://bugreports.qt.io/browse/QTBUG-49686).
|
||||
QWARN("Skipping AppTests on mac build with 'minimal' platform set due to Qt bugs. To run AppTests, invoke "
|
||||
"with 'QT_QPA_PLATFORM=cocoa test_bitcoin-qt' on mac, or else use a linux or windows build.");
|
||||
qWarning() << "Skipping AppTests on mac build with 'minimal' platform set due to Qt bugs. To run AppTests, invoke "
|
||||
"with 'QT_QPA_PLATFORM=cocoa test_bitcoin-qt' on mac, or else use a linux or windows build.";
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
@ -58,7 +58,7 @@ int main(int argc, char* argv[])
|
||||
gArgs.ForceSetArg("-natpmp", "0");
|
||||
|
||||
std::string error;
|
||||
if (!gArgs.ReadConfigFiles(error, true)) QWARN(error.c_str());
|
||||
if (!gArgs.ReadConfigFiles(error, true)) qWarning() << error.c_str();
|
||||
|
||||
// Prefer the "minimal" platform for the test instead of the normal default
|
||||
// platform ("xcb", "windows", or "cocoa") so tests can't unintentionally
|
||||
|
@ -475,8 +475,8 @@ void WalletTests::walletTests()
|
||||
// framework when it tries to look up unimplemented cocoa functions,
|
||||
// and fails to handle returned nulls
|
||||
// (https://bugreports.qt.io/browse/QTBUG-49686).
|
||||
QWARN("Skipping WalletTests on mac build with 'minimal' platform set due to Qt bugs. To run AppTests, invoke "
|
||||
"with 'QT_QPA_PLATFORM=cocoa test_bitcoin-qt' on mac, or else use a linux or windows build.");
|
||||
qWarning() << "Skipping WalletTests on mac build with 'minimal' platform set due to Qt bugs. To run AppTests, invoke "
|
||||
"with 'QT_QPA_PLATFORM=cocoa test_bitcoin-qt' on mac, or else use a linux or windows build.";
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user