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

Enable tst_selftests on Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 6.0
    • Fix Version/s: None
    • Component/s: Testing: qtestlib
    • Labels:
      None
    • Platform/s:
      Android

      Description

      tst_selftest uses QProcess to start a bunch of helper tests as external processes. After that it compares the output of the processes (stdout or file) with the expected results.

      This works fine on all desktop platforms, but fails on Android (and probably on iOS as well), because Android does not seem to allow starting a new process from the application.

      The attached patch (now abandoned) suggests the ugly approach with creating individual Android activities for each of the helper tests, and using JNI to start these activities. It is agreed that this approach is overcomplicated and shall not be merged.

      Instead the test should be restructure (or split out) to test the QAbstractTestLogger subclasses directly using the C++ API. Some of the tests can still rely on starting a QProcess, but those tests can be explicitly QSKIP'ped on Android.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              cnn Qt Core & Network
              Reporter:
              assam Assam Boudjelthia
              PM Owner:
              Vladimir Minenko Vladimir Minenko
              RnD Owner:
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes