<QTest> 代理页面

(since 6.8) QTEST_THROW_ON_FAIL
(since 6.8) QTEST_THROW_ON_SKIP

宏文档

[since 6.8] QTEST_THROW_ON_FAIL

定义后,QCOMPARE()/QVERIFY() 等总是在失败时抛出。这样,QTest::throwOnFail() 就不再有任何作用。

该宏在 Qt 6.8 中引入。

[since 6.8] QTEST_THROW_ON_SKIP

定义后,QSKIP() 总是抛出。这样,QTest::throwOnSkip() 就不再有任何作用。

该宏在 Qt 6.8 中引入。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.