test: migrate unit tests from Qt5 to Qt6 compatibility#201
Conversation
There was a problem hiding this comment.
Sorry @pengfeixx, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
- Add QT_VERSION_MAJOR guards for QMouseEvent constructors (QPoint->QPointF) - Replace foreach macro with C++11 range-based for loops - Replace QProcess::start(cmd) with startCommand() for Qt6 - Fix ASAN misaligned write crash in stub.h using memcpy - 为QMouseEvent构造函数添加Qt6兼容分支(QPoint→QPointF) - 将foreach宏替换为C++11 range-for循环 - 将QProcess::start()单参数调用替换为startCommand() - 修复stub.h中ASAN非对齐写入崩溃(memcpy替代指针解引用) Log: 迁移单元测试支持Qt6编译运行 Influence: 单元测试可在Qt6环境下编译运行,361/368测试通过,兼容Qt5编译。
e8badd0 to
9c9a420
Compare
deepin pr auto review你好!我是CodeGeeX。我已仔细审查了你提供的Git Diff。本次提交主要进行了两项改进:一是将Qt的 整体来看,这次修改方向非常正确,有效提升了代码的现代性、跨版本兼容性以及类型安全性。不过,在仔细审查语法逻辑、代码质量、性能和安全性后,我发现了一些需要改进和注意的地方。 以下是详细的审查意见: 1. 语法逻辑 -
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, pengfeixx The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/merge |
|
This pr cannot be merged! (status: unknown) |
Add QT_VERSION_MAJOR guards for QMouseEvent constructors (QPoint->QPointF)
Replace foreach macro with C++11 range-based for loops
Replace QProcess::start(cmd) with startCommand() for Qt6
Fix ASAN misaligned write crash in stub.h using memcpy
为QMouseEvent构造函数添加Qt6兼容分支(QPoint→QPointF)
将foreach宏替换为C++11 range-for循环
将QProcess::start()单参数调用替换为startCommand()
修复stub.h中ASAN非对齐写入崩溃(memcpy替代指针解引用)
Log: 迁移单元测试支持Qt6编译运行
Influence: 单元测试可在Qt6环境下编译运行,361/368测试通过,兼容Qt5编译。