CTestCustom.cmake.in 5.8 KB
Newer Older
1
list(APPEND CTEST_CUSTOM_ERROR_MATCH
2 3
  "ERROR:")

4
list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
5 6
  "xtree.[0-9]+. : warning C4702: unreachable code"
  "warning LNK4221"
7
  "warning LNK4204" # Occurs by race condition with objects in small libs
8 9 10 11 12 13 14 15 16
  "variable .var_args[2]*. is used before its value is set"
  "jobserver unavailable"
  "warning: \\(Long double usage is reported only once for each file"
  "warning: To disable this warning use"
  "could not be inlined"
  "libcmcurl.*has no symbols"
  "not sorted slower link editing will result"
  "stl_deque.h:479"
  "Utilities.cmzlib."
Bill Hoffman's avatar
Bill Hoffman committed
17
  "Utilities.cmbzip2."
18
  "Source.CTest.Curl"
19
  "Source.CursesDialog.form"
20
  "Source.cm_sha2.*warning.*cast increases required alignment of target type"
21
  "Utilities.cmcurl"
22
  "Utilities.cmexpat."
23
  "Utilities.cmlibarchive"
24 25
  "warning: declaration of .single. shadows a global declaration"
  "/usr/include.*(warning|note).*shadowed declaration is here"
26 27 28 29 30
  "/usr/bin/ld.*warning.*-..*directory.name.*bin.*does not exist"
  "Redeclaration of .send..... with a different storage class specifier"
  "is not used for resolving any symbol"
  "Clock skew detected"
  "remark\\(1209"
31
  "remark: .*LOOP WAS VECTORIZED"
32
  "warning .980: wrong number of actual arguments to intrinsic function .std::basic_"
33
  "LINK : warning LNK4089: all references to.*ADVAPI32.dll.*discarded by /OPT:REF"
34
  "LINK : warning LNK4089: all references to.*CRYPT32.dll.*discarded by /OPT:REF"
35
  "LINK : warning LNK4089: all references to.*PSAPI.DLL.*discarded by /OPT:REF"
36
  "LINK : warning LNK4089: all references to.*RPCRT4.dll.*discarded by /OPT:REF"
37
  "LINK : warning LNK4089: all references to.*SHELL32.dll.*discarded by /OPT:REF"
38
  "LINK : warning LNK4089: all references to.*USER32.dll.*discarded by /OPT:REF"
39
  "LINK : warning LNK4089: all references to.*ole32.dll.*discarded by /OPT:REF"
Brad King's avatar
Brad King committed
40
  "Warning.*: .*/Utilities/KWIML/test/test_int_format.h.* # Redundant preprocessing concatenation"
41 42 43
  "Warning: library was too large for page size.*"
  "Warning: public.*_archive_.*in module.*archive_*clashes with prior module.*archive_.*"
  "Warning: public.*BZ2_bz.*in module.*bzlib.*clashes with prior module.*bzlib.*"
44
  "Warning: public.*_archive.*clashes with prior module.*"
45
  "Warning: LINN32: Last line.*is less.*"
46 47
  "Warning: Olimit was exceeded on function.*"
  "Warning: To override Olimit for all functions in file.*"
48
  "warning.*directory name.*CMake-Xcode.*/bin/.*does not exist.*"
49
  "stl_deque.h:1051"
50
  "(Lexer|Parser).*warning.*conversion.*may (alter its value|change the sign)"
51
  "(Lexer|Parser).*warning.*(statement is unreachable|will never be executed)"
52
  "(Lexer|Parser).*warning.*variable.*was set but never used"
53
  "PGC-W-0095-Type cast required for this conversion.*ProcessUNIX.c"
54
  "[Qq]t([Cc]ore|[Gg]ui|[Ww]idgets).*warning.*conversion.*may alter its value"
55 56
  "warning:.*is.*very unsafe.*consider using.*"
  "warning:.*is.*misused, please use.*"
57
  "cmake.version.manifest.*manifest authoring warning.*Unrecognized Element"
Brad King's avatar
Brad King committed
58
  "cc-3968 CC: WARNING File.*" # "implicit" truncation by static_cast
59
  "ld: warning: directory not found for option .-(F|L)"
60
  "ld: warning .*/libgcc.a archive's cputype"
61
  "ld: warning: ignoring file .*/libgcc.a, file was built for archive which is not the architecture being linked"
62
  "ld: warning: in .*/libgcc.a, file is not of required architecture"
63
  "warning.*This version of Mac OS X is unsupported"
64
  "clang.*: warning: argument unused during compilation: .-g"
65
  "note: in expansion of macro" # diagnostic context note
66
  "note: expanded from macro" # diagnostic context note
67
  "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*rand.*may return deterministic values"
68 69
  "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*rand.*isn.*t random" # we do not do crypto
  "cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*srand.*seed choices are.*poor" # we do not do crypto
70
  "IPA warning: function.*multiply defined in"
71 72 73 74

  # Ignore clang's summary warning, assuming prior text has matched some
  # other warning expression:
  "[0-9,]+ warnings? generated."
75 76
  # similarly for PGI
  "compilation completed with warnings"
77 78 79 80 81 82 83 84 85 86 87

# scanbuild exceptions
  "char_traits.h:.*: warning: Null pointer argument in call to string length function"
  "stl_construct.h:.*: warning: Forming reference to null pointer"
  ".*stl_uninitialized.h:75:19: warning: Forming reference to null pointer.*"
  ".*stl_vector.h:.*: warning: Returning null reference.*"
  "warning: Value stored to 'yymsg' is never read"
  "warning: Value stored to 'yytoken' is never read"
  "index_encoder.c.241.2. warning: Value stored to .out_start. is never read"
  "index.c.*warning: Access to field.*results in a dereference of a null pointer.*loaded from variable.*"
  "cm_sha2.*warning: Value stored to.*is never read"
88
  "cmFortranLexer.cxx:[0-9]+:[0-9]+: warning: Call to 'realloc' has an allocation size of 0 bytes"
89
  "testProcess.*warning: Dereference of null pointer .loaded from variable .invalidAddress.."
90
  "liblzma/simple/x86.c:[0-9]+:[0-9]+: warning: The result of the '<<' expression is undefined"
91 92
  "libuv/src/.*:[0-9]+:[0-9]+: warning: Dereference of null pointer"
  "libuv/src/.*:[0-9]+:[0-9]+: warning: The left operand of '==' is a garbage value"
93 94
  )

95
if(NOT "@CMAKE_GENERATOR@" MATCHES "Xcode")
96
  list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
97 98
    "XCode"
    )
99
endif ()
100

101
if(NOT "@CMAKE_GENERATOR@" MATCHES "KDevelop")
102
  list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
103 104
    "Kdevelop"
    )
105
endif ()
106

107
list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
108 109 110 111 112 113
  # Exclude kwsys files from coverage results. They are reported
  # (with better coverage results) on kwsys dashboards...
  "/Source/(cm|kw)sys/"

  # Exclude try_compile sources from coverage results:
  "/CMakeFiles/CMakeTmp/"
114 115 116

  # Exclude Qt source files from coverage results:
  "[A-Za-z]./[Qq]t/qt-.+-opensource-src"
117
  )
118 119 120 121

list(APPEND CTEST_CUSTOM_MEMCHECK_IGNORE
  kwsys.testProcess-10 # See Source/kwsys/CTestCustom.cmake.in
  )