CTestCustom.cmake.in 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. list(APPEND CTEST_CUSTOM_ERROR_MATCH
  2. "ERROR:")
  3. list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
  4. "warning: cast from 'char\\*' to 'cmCursesWidget\\*' increases required alignment of target type" # Occurs when using Solaris's system libform
  5. "xtree.[0-9]+. : warning C4702: unreachable code"
  6. "warning LNK4221"
  7. "warning LNK4204" # Occurs by race condition with objects in small libs
  8. "variable .var_args[2]*. is used before its value is set"
  9. "warning: variable .__d[01]. was set but never used" # FD_ZERO on NVHPC
  10. "jobserver unavailable"
  11. "warning: \\(Long double usage is reported only once for each file"
  12. "warning: To disable this warning use"
  13. "could not be inlined"
  14. "libcmexpat.*has no symbols"
  15. "libcmcurl.*has no symbols"
  16. "not sorted slower link editing will result"
  17. "stl_deque.h:479"
  18. "Utilities.cmzlib."
  19. "Utilities.cmbzip2."
  20. "Source.CTest.Curl"
  21. "Source.CursesDialog.form"
  22. "Utilities.cmcurl"
  23. "Utilities.cmexpat."
  24. "Utilities.cmlibarchive"
  25. "warning: declaration of .single. shadows a global declaration"
  26. "/usr/include.*(warning|note).*shadowed declaration is here"
  27. "/usr/bin/ld.*warning.*-..*directory.name.*bin.*does not exist"
  28. "Redeclaration of .send..... with a different storage class specifier"
  29. "is not used for resolving any symbol"
  30. "Clock skew detected"
  31. "remark\\(1209"
  32. "remark: .*LOOP WAS VECTORIZED"
  33. "warning .980: wrong number of actual arguments to intrinsic function .std::basic_"
  34. "LINK : warning LNK4089: all references to.*ADVAPI32.dll.*discarded by /OPT:REF"
  35. "LINK : warning LNK4089: all references to.*CRYPT32.dll.*discarded by /OPT:REF"
  36. "LINK : warning LNK4089: all references to.*PSAPI.DLL.*discarded by /OPT:REF"
  37. "LINK : warning LNK4089: all references to.*RPCRT4.dll.*discarded by /OPT:REF"
  38. "LINK : warning LNK4089: all references to.*SHELL32.dll.*discarded by /OPT:REF"
  39. "LINK : warning LNK4089: all references to.*USER32.dll.*discarded by /OPT:REF"
  40. "LINK : warning LNK4089: all references to.*ole32.dll.*discarded by /OPT:REF"
  41. "Warning.*: .*/Utilities/KWIML/test/test_int_format.h.* # Redundant preprocessing concatenation"
  42. "Warning: library was too large for page size.*"
  43. "Warning: public.*_archive_.*in module.*archive_*clashes with prior module.*archive_.*"
  44. "Warning: public.*BZ2_bz.*in module.*bzlib.*clashes with prior module.*bzlib.*"
  45. "Warning: public.*_archive.*clashes with prior module.*"
  46. "Warning: LINN32: Last line.*is less.*"
  47. "Warning: Olimit was exceeded on function.*"
  48. "Warning: To override Olimit for all functions in file.*"
  49. "Warning: Function .* can throw only the exceptions thrown by the function .* it overrides\\."
  50. "WarningMessagesDialog\\.cxx"
  51. "warning.*directory name.*CMake-Xcode.*/bin/.*does not exist.*"
  52. "stl_deque.h:1051"
  53. "Tests/CMakeLib/testCTestResourceSpec.cxx:.*warning: missing initializer for member.*cmCTestResourceSpec::.*" # GCC 4.8 disagrees with later compilers on C++11 initializer list conversion
  54. "(Lexer|Parser).*warning.*conversion.*may (alter its value|change the sign)"
  55. "(Lexer|Parser).*warning.*(statement is unreachable|will never be executed)"
  56. "(Lexer|Parser).*warning.*variable.*was set but never used"
  57. "LexerParser.*warning.*empty expression statement has no effect; remove unnecessary"
  58. "PGC-W-0095-Type cast required for this conversion.*ProcessUNIX.c"
  59. "[Qq]t([Cc]ore|[Gg]ui|[Ww]idgets).*warning.*conversion.*may alter its value"
  60. "warning:.*is.*very unsafe.*consider using.*"
  61. "warning:.*is.*misused, please use.*"
  62. "cmake.version.manifest.*manifest authoring warning.*Unrecognized Element"
  63. "cc-3968 CC: WARNING File.*" # "implicit" truncation by static_cast
  64. "ld: warning: directory not found for option .-(F|L)"
  65. "ld: warning .*/libgcc.a archive's cputype"
  66. "ld: warning: ignoring file .*/libgcc.a, file was built for archive which is not the architecture being linked"
  67. "ld: warning: in .*/libgcc.a, file is not of required architecture"
  68. "ld: warning: symbol .(deflate|inflate)_copyright. has differing sizes" # system libz and QtCore disagree
  69. "warning.*This version of Mac OS X is unsupported"
  70. "clang.*: warning: argument unused during compilation: .-g"
  71. "note: in expansion of macro" # diagnostic context note
  72. "note: expanded from macro" # diagnostic context note
  73. "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*rand.*may return deterministic values"
  74. "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*rand.*isn.*t random" # we do not do crypto
  75. "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*srand.*seed choices are.*poor" # we do not do crypto
  76. "IPA warning: function.*multiply defined in"
  77. "LICENSE WARNING" # PGI license expiry. Not useful in nightly testing.
  78. # Ignore compiler summary warning, assuming prior text has matched some
  79. # other warning expression:
  80. "[0-9,]+ warnings? generated." # Clang
  81. "compilation completed with warnings" # PGI
  82. "[0-9]+ Warning\\(s\\) detected" # SunPro
  83. # clang-analyzer exceptions
  84. "char_traits.h:.*: warning: Null pointer argument in call to string length function"
  85. "stl_construct.h:.*: warning: Forming reference to null pointer"
  86. ".*stl_uninitialized.h:75:19: warning: Forming reference to null pointer.*"
  87. ".*stl_vector.h:.*: warning: Returning null reference.*"
  88. "warning: Value stored to 'yymsg' is never read"
  89. "warning: Value stored to 'yytoken' is never read"
  90. "index_encoder.c.241.2. warning: Value stored to .out_start. is never read"
  91. "index.c.*warning: Access to field.*results in a dereference of a null pointer.*loaded from variable.*"
  92. "cmCommandArgumentLexer.cxx:[0-9]+:[0-9]+: warning: Call to 'realloc' has an allocation size of 0 bytes"
  93. "cmDependsJavaLexer.cxx:[0-9]+:[0-9]+: warning: Call to 'realloc' has an allocation size of 0 bytes"
  94. "cmExprLexer.cxx:[0-9]+:[0-9]+: warning: Call to 'realloc' has an allocation size of 0 bytes"
  95. "cmListFileLexer.c:[0-9]+:[0-9]+: warning: Call to 'realloc' has an allocation size of 0 bytes"
  96. "cmFortranLexer.cxx:[0-9]+:[0-9]+: warning: Call to 'realloc' has an allocation size of 0 bytes"
  97. "testProcess.*warning: Dereference of null pointer .loaded from variable .invalidAddress.."
  98. "liblzma/simple/x86.c:[0-9]+:[0-9]+: warning: The result of the '<<' expression is undefined"
  99. "liblzma/common/index_encoder.c:[0-9]+:[0-9]+: warning: Value stored to .* during its initialization is never read"
  100. "libuv/src/.*:[0-9]+:[0-9]+: warning: Dereference of null pointer"
  101. "libuv/src/.*:[0-9]+:[0-9]+: warning: The left operand of '==' is a garbage value"
  102. "libuv/src/.*:[0-9]+:[0-9]+: warning: 1st function call argument is an uninitialized value"
  103. "nghttp2/lib/.*:[0-9]+:[0-9]+: warning: Dereference of null pointer"
  104. "nghttp2/lib/.*:[0-9]+:[0-9]+: warning: Value stored to .* is never read"
  105. )
  106. if(NOT "@CMAKE_GENERATOR@" MATCHES "Xcode")
  107. list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
  108. "XCode"
  109. )
  110. endif ()
  111. list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
  112. # Exclude kwsys files from coverage results. They are reported
  113. # (with better coverage results) on kwsys dashboards...
  114. "/Source/(cm|kw)sys/"
  115. # Exclude try_compile sources from coverage results:
  116. "/CMakeFiles/CMakeTmp/"
  117. # Exclude Qt source files from coverage results:
  118. "[A-Za-z]./[Qq]t/qt-.+-opensource-src"
  119. )
  120. list(APPEND CTEST_CUSTOM_MEMCHECK_IGNORE
  121. kwsys.testProcess-10 # See Source/kwsys/CTestCustom.cmake.in
  122. )