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

Inappropriate use of QSKIP in QVarLengthArray autotest

XMLWordPrintable

      In tests/auto/corelib/tools/qvarlengtharray/tst_qvarlengtharray.cpp, the last block of the oldTests() test function is disabled with:

      QSKIP("This test causes the machine to crash when allocating too much memory.");
      

      This is not an appropriate use of QSKIP, because it means that the tests previously executed in this function are never reported as a pass. If this block is never useful, it should be removed, otherwise the test should be fixed and the QSKIP removed.

      On linux, if the QSKIP is removed the test causes std::bad_alloc to be thrown. Perhaps the test should catch this exception.

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

            carochao Caroline Chao (Inactive)
            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes