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