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

Some tst_QProcess's don't need to link to Qt

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.2.0 Alpha
    • 6.2.0 Alpha
    • Build System: CMake
    • None
    • d437a0bfca8f96dfd39c5872fd9479f2b7c4e61e (qt/qtbase/dev)

    Description

      $ eu-readelf -d tests/auto/corelib/io/qprocess/testForwardingHelper/testForwardingHelper
      
      Dynamic segment contains 36 entries:
       Addr: 0x0000000000403da0  Offset: 0x002da0  Link to section: [ 8] '.dynstr'
        Type              Value
        NEEDED            Shared library: [libQt6Core.t.so.6]
        NEEDED            Shared library: [libstdc++.so.6]
        NEEDED            Shared library: [libm.so.6]
        NEEDED            Shared library: [libgcc_s.so.1]
        NEEDED            Shared library: [libpthread.so.0]
        NEEDED            Shared library: [libc.so.6]
        RUNPATH           Library runpath: [/home/tjmaciei/obj/qt/qt6/qtbase/lib:]
      [...]
      

      This test doesn't need to link to QtCore, since it's a very, very simple C++ program (didn't even need to be C++).

      The list of helpers that don't need Qt is:

      • testExitCodes
      • testForwardingHelper
      • testProcessCrash
      • testProcessDeadWhileReading
      • testProcessEcho2
      • testProcessEcho3
      • testProcessEcho
      • testProcessEnvironment
      • testProcessEOF
      • testProcessHang
      • testProcessNormal
      • testProcessOutput
      • testProcessSpacesArgs
      • testSetNamedPipeHandleState
      • testSpaceInName

      Note: some of those need to link to some Windows libraries when compiled on Windows.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              thiago Thiago Macieira
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes