cmake/CTestCustom.cmake.in

124 lines
6.6 KiB
CMake
Raw Normal View History

2015-11-17 17:22:37 +01:00
list(APPEND CTEST_CUSTOM_ERROR_MATCH
2012-04-19 19:04:21 +03:00
"ERROR:")
2015-11-17 17:22:37 +01:00
list(APPEND CTEST_CUSTOM_WARNING_EXCEPTION
2018-10-28 12:09:07 +01:00
"warning: cast from 'char\\*' to 'cmCursesWidget\\*' increases required alignment of target type" # Occurs when using Solaris's system libform
"xtree.[0-9]+. : warning C4702: unreachable code"
"warning LNK4221"
"warning LNK4204" # Occurs by race condition with objects in small libs
"variable .var_args[2]*. is used before its value is set"
2021-09-14 00:13:48 +02:00
"warning: variable .__d[01]. was set but never used" # FD_ZERO on NVHPC
"jobserver unavailable"
"warning: \\(Long double usage is reported only once for each file"
"warning: To disable this warning use"
"could not be inlined"
2020-08-30 11:54:41 +02:00
"libcmexpat.*has no symbols"
"libcmcurl.*has no symbols"
"not sorted slower link editing will result"
"stl_deque.h:479"
"Utilities.cmzlib."
2010-06-23 01:18:35 +03:00
"Utilities.cmbzip2."
"Source.CTest.Curl"
"Source.CursesDialog.form"
2009-10-04 10:30:41 +03:00
"Utilities.cmcurl"
"Utilities.cmexpat."
2010-06-23 01:18:35 +03:00
"Utilities.cmlibarchive"
2016-03-13 13:35:51 +01:00
"warning: declaration of .single. shadows a global declaration"
"/usr/include.*(warning|note).*shadowed declaration is here"
"/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"
2011-01-16 11:35:12 +01:00
"remark: .*LOOP WAS VECTORIZED"
"warning .980: wrong number of actual arguments to intrinsic function .std::basic_"
2010-06-23 01:18:35 +03:00
"LINK : warning LNK4089: all references to.*ADVAPI32.dll.*discarded by /OPT:REF"
2015-11-17 17:22:37 +01:00
"LINK : warning LNK4089: all references to.*CRYPT32.dll.*discarded by /OPT:REF"
2013-03-16 19:13:01 +02:00
"LINK : warning LNK4089: all references to.*PSAPI.DLL.*discarded by /OPT:REF"
2015-08-17 11:37:30 +02:00
"LINK : warning LNK4089: all references to.*RPCRT4.dll.*discarded by /OPT:REF"
2014-08-03 19:52:23 +02:00
"LINK : warning LNK4089: all references to.*SHELL32.dll.*discarded by /OPT:REF"
2010-06-23 01:18:35 +03:00
"LINK : warning LNK4089: all references to.*USER32.dll.*discarded by /OPT:REF"
2015-08-17 11:37:30 +02:00
"LINK : warning LNK4089: all references to.*ole32.dll.*discarded by /OPT:REF"
2016-03-13 13:35:51 +01:00
"Warning.*: .*/Utilities/KWIML/test/test_int_format.h.* # Redundant preprocessing concatenation"
2010-06-23 01:18:35 +03:00
"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.*"
"Warning: public.*_archive.*clashes with prior module.*"
"Warning: LINN32: Last line.*is less.*"
2015-04-27 22:25:09 +02:00
"Warning: Olimit was exceeded on function.*"
"Warning: To override Olimit for all functions in file.*"
2018-01-26 17:06:56 +01:00
"Warning: Function .* can throw only the exceptions thrown by the function .* it overrides\\."
"WarningMessagesDialog\\.cxx"
2010-06-23 01:18:35 +03:00
"warning.*directory name.*CMake-Xcode.*/bin/.*does not exist.*"
"stl_deque.h:1051"
2020-02-01 23:06:01 +01:00
"Tests/CMakeLib/testCTestResourceSpec.cxx:.*warning: missing initializer for member.*cmCTestResourceSpec::.*" # GCC 4.8 disagrees with later compilers on C++11 initializer list conversion
2009-10-04 10:30:41 +03:00
"(Lexer|Parser).*warning.*conversion.*may (alter its value|change the sign)"
2015-04-27 22:25:09 +02:00
"(Lexer|Parser).*warning.*(statement is unreachable|will never be executed)"
2016-10-30 18:24:19 +01:00
"(Lexer|Parser).*warning.*variable.*was set but never used"
2019-11-11 23:01:05 +01:00
"LexerParser.*warning.*empty expression statement has no effect; remove unnecessary"
2012-04-19 19:04:21 +03:00
"PGC-W-0095-Type cast required for this conversion.*ProcessUNIX.c"
2015-04-27 22:25:09 +02:00
"[Qq]t([Cc]ore|[Gg]ui|[Ww]idgets).*warning.*conversion.*may alter its value"
2010-06-23 01:18:35 +03:00
"warning:.*is.*very unsafe.*consider using.*"
"warning:.*is.*misused, please use.*"
2016-07-09 11:21:54 +02:00
"cmake.version.manifest.*manifest authoring warning.*Unrecognized Element"
2010-06-23 01:18:35 +03:00
"cc-3968 CC: WARNING File.*" # "implicit" truncation by static_cast
2012-02-18 12:40:36 +02:00
"ld: warning: directory not found for option .-(F|L)"
2015-08-17 11:37:30 +02:00
"ld: warning .*/libgcc.a archive's cputype"
"ld: warning: ignoring file .*/libgcc.a, file was built for archive which is not the architecture being linked"
"ld: warning: in .*/libgcc.a, file is not of required architecture"
2020-08-30 11:54:41 +02:00
"ld: warning: symbol .(deflate|inflate)_copyright. has differing sizes" # system libz and QtCore disagree
2012-02-18 12:40:36 +02:00
"warning.*This version of Mac OS X is unsupported"
2012-04-19 19:04:21 +03:00
"clang.*: warning: argument unused during compilation: .-g"
2015-04-27 22:25:09 +02:00
"note: in expansion of macro" # diagnostic context note
2016-10-30 18:24:19 +01:00
"note: expanded from macro" # diagnostic context note
2016-07-09 11:21:54 +02:00
"cm(StringCommand|CTestTestHandler)\\.cxx.*warning.*rand.*may return deterministic values"
2015-04-27 22:25:09 +02:00
"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
2016-10-30 18:24:19 +01:00
"IPA warning: function.*multiply defined in"
2020-08-30 11:54:41 +02:00
"LICENSE WARNING" # PGI license expiry. Not useful in nightly testing.
2012-02-18 12:40:36 +02:00
2018-01-26 17:06:56 +01:00
# Ignore compiler summary warning, assuming prior text has matched some
2012-02-18 12:40:36 +02:00
# other warning expression:
2018-01-26 17:06:56 +01:00
"[0-9,]+ warnings? generated." # Clang
"compilation completed with warnings" # PGI
"[0-9]+ Warning\\(s\\) detected" # SunPro
2015-08-17 11:37:30 +02:00
2021-09-14 00:13:48 +02:00
# clang-analyzer exceptions
"cmListFileLexer.c:[0-9]+:[0-9]+: warning: Array subscript is undefined"
"jsoncpp/src/.*:[0-9]+:[0-9]+: warning: Value stored to .* is never read"
"liblzma/common/index_encoder.c:[0-9]+:[0-9]+: warning: Value stored to '[^']+' during its initialization is never read"
"liblzma/liblzma/common/index.c:[0-9]+:[0-9]+: warning: Access to field '[^']+' results in a dereference of a null pointer"
2016-07-09 11:21:54 +02:00
"liblzma/simple/x86.c:[0-9]+:[0-9]+: warning: The result of the '<<' expression is undefined"
2021-09-14 00:13:48 +02:00
"librhash/librhash/.*:[0-9]+:[0-9]+: warning: The left operand of '[^']+' is a garbage value"
2020-08-30 11:54:41 +02:00
"libuv/src/.*:[0-9]+:[0-9]+: warning: 1st function call argument is an uninitialized value"
2021-09-14 00:13:48 +02:00
"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"
"nghttp2/lib/.*:[0-9]+:[0-9]+: warning: Access to field '[^']+' results in a dereference of a null pointer"
2020-08-30 11:54:41 +02:00
"nghttp2/lib/.*:[0-9]+:[0-9]+: warning: Dereference of null pointer"
2021-09-14 00:13:48 +02:00
"nghttp2/lib/.*:[0-9]+:[0-9]+: warning: Value stored to '[^']+' is never read"
"zstd/lib/.*:[0-9]+:[0-9]+: warning: Assigned value is garbage or undefined"
"zstd/lib/.*:[0-9]+:[0-9]+: warning: Dereference of null pointer"
)
2013-03-16 19:13:01 +02:00
if(NOT "@CMAKE_GENERATOR@" MATCHES "Xcode")
2015-11-17 17:22:37 +01:00
list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
"XCode"
)
2013-03-16 19:13:01 +02:00
endif ()
2015-11-17 17:22:37 +01:00
list(APPEND CTEST_CUSTOM_COVERAGE_EXCLUDE
# 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/"
2009-11-06 22:07:41 +02:00
# Exclude Qt source files from coverage results:
"[A-Za-z]./[Qq]t/qt-.+-opensource-src"
)
2015-11-17 17:22:37 +01:00
list(APPEND CTEST_CUSTOM_MEMCHECK_IGNORE
kwsys.testProcess-10 # See Source/kwsys/CTestCustom.cmake.in
)