Support <Test Status="notrun"> tag as failed test

Issue #11 new
Sergej Esau created an issue

Test.xml sometimes include <Test Status="notrun"> tag mostly if executable are not found during ctest run and CTest parser ignore this test and the result will be successful run which is wrong.

to reproduce this modify add_test by adding salt to

add_test(
  NAME MY_EXCUTABLE
  COMMAND $<TARGET_FILE:MY_EXCUTABLE salt> 
)

Affected file:

CTestParser.java

Possible fix:

CHANGE

if (attributes.getValue("Status").equalsIgnoreCase("failed"))

TO

if (attributes.getValue("Status").equalsIgnoreCase("failed") || attributes.getValue("Status").equalsIgnoreCase("notrun"))

Thank you for support

Comments (0)

  1. Log in to comment