Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-4204

CppUnit plugin crashes on empty result files



    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Duplicate
    • other
    • None
    • Platform: All, OS: All


      I sometimes (rather more frequently than desirable) have unittests that crash.
      These leave behind an empty .xml file (0 bytes), which causes the cppunit plugin
      to crash with the exception as attached (there's a "Premature End Of File" in it).
      When it does that, it also fails to keep the results of the other unittests (we
      run many unittest programs per build), so the trend and test overview are less
      usable than they could be.
      I think this is a regression from earlier versions. This is happening with
      v0.5.1, but v0.3 seemed to ignore empty files or at least handle them gracefully.

      Of course, this is a build error, and it's thus OK if CppUnit causes the build
      to fail because of this. It's also OK if it doesn't, because I catch the failure
      by other means also.


        Issue Links


            torbent torbent created issue -
            torbent torbent made changes -
            Field Original Value New Value
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            torbent torbent made changes -
            Link This issue duplicates JENKINS-4305 [ JENKINS-4305 ]
            torbent torbent made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 134277 ] JNJira + In-Review [ 202732 ]


              Unassigned Unassigned
              torbent torbent
              0 Vote for this issue
              0 Start watching this issue