Tests: Enforce RunCMake.CXXModules no-modules-support diagnostics strictly

Previously the expected output expressions used `(...)*` which did not
actually have to match anything.
This commit is contained in:
Brad King
2023-10-10 10:28:52 -04:00
parent 308d687018
commit 604466b83e
6 changed files with 26 additions and 36 deletions

View File

@@ -1,8 +1,7 @@
(CMake Error in CMakeLists.txt:
( The target named "cmp0155-new" has C\+\+ sources that use modules but the
The target named "cmp0155-new" has C\+\+ sources that use modules but the
compiler does not provide a way to discover the import graph dependencies
| The target named "cmp0155-new" contains C\+\+ sources that use modules which
|CMake Error in CMakeLists.txt:
The target named "cmp0155-new" contains C\+\+ sources that use modules which
is not supported by the generator
)
)*
CMake Generate step failed. Build files cannot be regenerated correctly.

View File

@@ -1,13 +1,14 @@
(CMake Error in CMakeLists.txt:
( The target named "nocxx" has C\+\+ sources that use modules but the "CXX"
The target named "nocxx" has C\+\+ sources that use modules but the "CXX"
language has not been enabled
| The target named "nocxx" contains C\+\+ sources that use modules which is not
|CMake Error in CMakeLists.txt:
The target named "nocxx" contains C\+\+ sources that use modules which is not
supported by the generator
| Target "nocxx" has source file
|CMake Error in CMakeLists.txt:
Target "nocxx" has source file
.*/Tests/RunCMake/CXXModules/sources/module.cxx
[^
]*/Tests/RunCMake/CXXModules/sources/module.cxx
in a "FILE_SET TYPE CXX_MODULES" but it is not scheduled for compilation.
)
)*
CMake Generate step failed. Build files cannot be regenerated correctly.

View File

@@ -1,9 +1,8 @@
(CMake Error in CMakeLists.txt:
( The target named "nocxx20" has C\+\+ sources that use modules but does not
The target named "nocxx20" has C\+\+ sources that use modules but does not
include "cxx_std_20" \(or newer\) among its `target_compile_features`; found
"cxx_std_17"
| The target named "nocxx20" contains C\+\+ sources that use modules which is
|CMake Error in CMakeLists.txt:
The target named "nocxx20" contains C\+\+ sources that use modules which is
not supported by the generator
)
)*
CMake Generate step failed. Build files cannot be regenerated correctly.

View File

@@ -1,18 +1,11 @@
(CMake Error:
^(CMake Error:
The Ninja generator does not support C\+\+20 modules using Ninja version
.*
due to lack of required features. Ninja 1.11 or higher is required.
[^
]+
due to lack of required features\. Ninja 1\.11 or higher is required\.
|CMake Error in CMakeLists.txt:
The target named "nodyndep" contains C\+\+ sources that use modules which is
not supported by the generator
(
CMake Error in CMakeLists.txt:
The target named "nodyndep" contains C\+\+ sources that use modules which is
not supported by the generator
)*)
CMake Generate step failed. Build files cannot be regenerated correctly.
)

View File

@@ -1,9 +1,8 @@
(CMake Error in CMakeLists.txt:
( The target named "noscanning-sf-property" has C\+\+ sources that use modules
The target named "noscanning-sf-property" has C\+\+ sources that use modules
but the compiler does not provide a way to discover the import graph
dependencies
| The target named "noscanning-sf-property" contains C\+\+ sources that use modules which
is not supported by the generator
|CMake Error in CMakeLists.txt:
The target named "noscanning-sf-property" contains C\+\+ sources that use
modules which is not supported by the generator
)
)*
CMake Generate step failed. Build files cannot be regenerated correctly.

View File

@@ -1,9 +1,8 @@
(CMake Error in CMakeLists.txt:
( The target named "noscanning-target-property" has C\+\+ sources that use
The target named "noscanning-target-property" has C\+\+ sources that use
modules but the compiler does not provide a way to discover the import
graph dependencies
| The target named "noscanning-target-property" contains C\+\+ sources that use modules which
is not supported by the generator
|CMake Error in CMakeLists.txt:
The target named "noscanning-target-property" contains C\+\+ sources that use
modules which is not supported by the generator
)
)*
CMake Generate step failed. Build files cannot be regenerated correctly.