summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/file/READ_ELF-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-11 17:38:16 (GMT)
committerBrad King <brad.king@kitware.com>2022-01-11 17:46:06 (GMT)
commit41bebbe50a66dfe7bb32365bd119e7e679d0faf1 (patch)
treec14ba5cd347ed0765c8ba1aa8fa1168eee77c3cd /Tests/RunCMake/file/READ_ELF-stderr.txt
parent4b8126fa409e8558f465c70eaa794dab82819d8d (diff)
downloadCMake-41bebbe50a66dfe7bb32365bd119e7e679d0faf1.zip
CMake-41bebbe50a66dfe7bb32365bd119e7e679d0faf1.tar.gz
CMake-41bebbe50a66dfe7bb32365bd119e7e679d0faf1.tar.bz2
file: Restore error capture in undocumented READ_ELF mode
Revise the error message added by commit 115ff6a347 (cmELF: Include the ELF parsing code unconditionally, 2021-06-17, v3.22.0-rc1~557^2) to honor the `CAPTURE_ERROR` option. This is needed by the call site in `BundleUtilities` to suppress errors on non-ELF files. Fixes: #23074
Diffstat (limited to 'Tests/RunCMake/file/READ_ELF-stderr.txt')
-rw-r--r--Tests/RunCMake/file/READ_ELF-stderr.txt21
1 files changed, 19 insertions, 2 deletions
diff --git a/Tests/RunCMake/file/READ_ELF-stderr.txt b/Tests/RunCMake/file/READ_ELF-stderr.txt
index 7b32804..fd02ca1 100644
--- a/Tests/RunCMake/file/READ_ELF-stderr.txt
+++ b/Tests/RunCMake/file/READ_ELF-stderr.txt
@@ -1,2 +1,19 @@
-.*file READ_ELF must be called with at least three additional arguments\.
-.*file READ_ELF given FILE "XXX" that does not exist\.
+^CMake Error at READ_ELF.cmake:1 \(file\):
+ file READ_ELF must be called with at least three additional arguments\.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:[0-9]+ \(include\)
++
+CMake Error at READ_ELF.cmake:2 \(file\):
+ file READ_ELF given FILE "XXX" that does not exist\.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:[0-9]+ \(include\)
++
+CMake Error at READ_ELF.cmake:4 \(file\):
+ file READ_ELF given FILE:
+
+ [^
+]*/Tests/RunCMake/file/READ_ELF.cmake
+
+ that is not a valid ELF file\.
+Call Stack \(most recent call first\):
+ CMakeLists.txt:[0-9]+ \(include\)$