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

Test tst_QProcess::fileWriterProcess() fails with MSVC2015/64

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0 Beta
    • 4.8.x, 5.6.0 Alpha
    • Core: I/O
    • Windows 10/ MSVC2015 64bit
    •  0ebebeb983d381010fae710aee60d8550d9be4f3 (qtbase/5.6, 30.9.2015, 5.6b)

    Description

      The test fails in all Qt versions with MSVC2015. It works with MSVC2013. I faintly remember that I ran all tests with MSVC2015/Preview back then and the error did not show with the preview version (IIRC).

      ********* Start testing of tst_QProcess *********
      Config: Using QtTest library 5.6.0, Qt 5.6.0 (x86_64-little_endian-llp64 shared (dynamic) debug build; by MSVC 2015)
      PASS   : tst_QProcess::initTestCase()
      FAIL!  : tst_QProcess::fileWriterProcess() Compared values are not the same
         Actual   (QFile("fileWriterProcess.txt").size()): 148888
         Expected (qint64(stdinStr.size()))              : 148890
      ..\tst_qprocess.cpp(2124) : failure location
      PASS   : tst_QProcess::cleanupTestCase()
      Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted
      ********* Finished testing of tst_QProcess *********
      
      ********* Start testing of tst_QProcess *********
      Config: Using QTest library 4.8.7, Qt 4.8.7
      PASS   : tst_QProcess::initTestCase()
      FAIL!  : tst_QProcess::fileWriterProcess() Compared values are not the same
         Actual (QFile("fileWriterProcess.txt").size()): 148888
         Expected (qint64(stdinStr.size())): 148890
      ..\tst_qprocess.cpp(2400) : failure location
      PASS   : tst_QProcess::cleanupTestCase()
      Totals: 2 passed, 1 failed, 0 skipped
      ********* Finished testing of tst_QProcess *********
      
      ********* Start testing of tst_QProcess *********
      Config: Using QtTest library 5.5.1, Qt 5.5.1 (i386-little_endian-ilp32 shared (dynamic) release build; by MSVC 2013)
      PASS   : tst_QProcess::initTestCase()
      PASS   : tst_QProcess::fileWriterProcess()
      PASS   : tst_QProcess::cleanupTestCase()
      Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted
      ********* Finished testing of tst_QProcess *********
      

      Attached file shows newlines missing at line 1224 (memory 0x8b36) and 4263 (memory 0x1ef57) .

      Attachments

        1. fileWriterProcess.txt
          145 kB
        2. freadtest.zip
          14 kB
        3. qtbug48455_diag.diff
          6 kB
        4. qtbug48455_fread.diff
          2 kB
        5. qtbug48455_mingw_log.txt
          615 kB
        6. qtbug48455_msvc_log.txt
          8 kB
        7. qtbug48455_nativewriterprocess.diff
          2 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-48455
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              kleint Friedemann Kleint
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews