# ctest\_build: Missing "obvious" error and warning matching regex?

**URL:** https://discourse.cmake.org/t/ctest-build-missing-obvious-error-and-warning-matching-regex/15651
**Category:** Development
**Tags:** tool:ctest
**Created:** [May 12, 2026, 2:01pm UTC](https://discourse.cmake.org/t/ctest-build-missing-obvious-error-and-warning-matching-regex/15651 "2026-05-12T14:01:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sjoubert](https://discourse.cmake.org/user_avatar/discourse.cmake.org/sjoubert/32/110_2.png) [@sjoubert](https://discourse.cmake.org/u/sjoubert)
#### Post date: [May 12, 2026, 2:01pm UTC](https://discourse.cmake.org/t/ctest-build-missing-obvious-error-and-warning-matching-regex/15651/1 "2026-05-12T14:01:20Z")

</div>

I just found that some warnings from a tool I run in a custom command did not get reported in my cdash build while I was seeing them in my local build.

It turns out the warning lines start with `warning:` , but the built-in regexes include a bunch of variation with various prefixes and case-sensitive patterns except this one (lower case, no prefix). The same applies for `error:`

To be honest, when I opened [https://gitlab.kitware.com/cmake/cmake/-/blob/master/Source/CTest/cmCTestBuildHandler.cxx](https://gitlab.kitware.com/cmake/cmake/-/blob/master/Source/CTest/cmCTestBuildHandler.cxx) I got a bit scared 😅

I’m not sure I want to touch it to add what seems, to me, to be a regex pattern I would expect to be built-in. Before I open an issue, does someone has information on why this pattern is not in the built-in list?
