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

Integration auto tests in Android fail without being reported

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.2
    • 6.2
    • Multimedia
    • None
    • Android
    • 2021wk42POAndroid&Mobile

    Description

      Running integration autotests on Android can fail without being reported.

      A example is tst_QMediaCaptureSession. Running a ctest on this test results in:

      1: ********* Start testing of tst_QMediaCaptureSession *********
      1: Config: Using QtTest library 6.3.0, Qt 6.3.0 (arm64-little_endian-lp64 shared (dynamic) debug build; by Clang 9.0.8 (https://android.googlesource.com/toolchain/llvm-project 98c855489587874b2a325e7a516b99d838599c6f)), android 11.0
      1: PASS : tst_QMediaCaptureSession::initTestCase()
      1: PASS : tst_QMediaCaptureSession::stress_test_setup_and_teardown()
      1: Execute /Users/Samuel/Library/Android/sdk/platform-tools/adb uninstall org.qtproject.example.tst_qmediacapturesession.
      1: Success
      1/1 Test #1: tst_qmediacapturesession ......... Passed 46.20 sec

      100% tests passed, 0 tests failed out of 1

      But tst_QMediaCaptureSession has 25 test functions besides stress_test_setup_and_teardown.

      Possibly stress_test_setup_and_teardown failed, was not reported as failing and prevented all other tests from running.

      I have noticed that this behaviour happens when QMediaRecorder starts to record and traced it to QAndroidCamera. The execution is halted as soon a "QMetaObject::invokeMethod" is called.

       Tested with other integration tests and found qaudiodecoderbackend test also has the same problem.

       

      Attachments

        Issue Links

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

          Activity

            People

              samuelmira Samuel Mira
              samuelmira Samuel Mira
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes