Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-116173

QBENCHMARK将导致qtest运行结果不一致

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.15.2
    • Testing: qtestlib
    • None
    • Windows

    Description

      我上传了一个附件,里面包含项目和两个运行结果。其中不使用QBENCHMARK的结果是真确的。用了QBENCHMARK以后,我发现cleanupTest失效。但是在缓慢调试的过程中,如果使用了QBENCHMARK,那么运行结果将是正常的。并且在快速的调试过程中发现,cleanupTest失效,被测试对象指针未改变,第二组测试数据测试的使用是用了第一组使用的被测试类。导致第一组改变了被测试对象成员变量影响了第二组数据测试结果。

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            macadder Jason McDonald
            langlang 鹏 许
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes