Browse Source

RunCMake/project: Ignore exact line number in stderr checks

friendlyanon 3 years ago
parent
commit
23f3dd9f7c

+ 1 - 1
Tests/RunCMake/project/CMP0048-OLD-VERSION-stderr.txt

@@ -1,4 +1,4 @@
 CMake Error at CMP0048-OLD-VERSION.cmake:1 \(project\):
   VERSION not allowed unless CMP0048 is set to NEW
 Call Stack \(most recent call first\):
-  CMakeLists.txt:3 \(include\)$
+  CMakeLists.txt:[0-9]+ \(include\)$

+ 1 - 1
Tests/RunCMake/project/CMP0048-OLD-stderr.txt

@@ -7,4 +7,4 @@
   specific short-term circumstances.  Projects should be ported to the NEW
   behavior and not rely on setting a policy to OLD.
 Call Stack \(most recent call first\):
-  CMakeLists.txt:3 \(include\)$
+  CMakeLists.txt:[0-9]+ \(include\)$

+ 1 - 1
Tests/RunCMake/project/CMP0048-WARN-stderr.txt

@@ -8,5 +8,5 @@ CMake Warning \(dev\) at CMP0048-WARN.cmake:3 \(project\):
     PROJECT_VERSION
     MyProject_VERSION_TWEAK
 Call Stack \(most recent call first\):
-  CMakeLists.txt:3 \(include\)
+  CMakeLists.txt:[0-9]+ \(include\)
 This warning is for project developers.  Use -Wno-dev to suppress it.

+ 1 - 1
Tests/RunCMake/project/LanguagesTwice-stderr.txt

@@ -1,4 +1,4 @@
 CMake Error at LanguagesTwice.cmake:1 \(project\):
   LANGUAGES may be specified at most once.
 Call Stack \(most recent call first\):
-  CMakeLists.txt:3 \(include\)$
+  CMakeLists.txt:[0-9]+ \(include\)$

+ 1 - 1
Tests/RunCMake/project/VersionInvalid-stderr.txt

@@ -1,4 +1,4 @@
 CMake Error at VersionInvalid.cmake:2 \(project\):
   VERSION "NONE" format invalid.
 Call Stack \(most recent call first\):
-  CMakeLists.txt:3 \(include\)$
+  CMakeLists.txt:[0-9]+ \(include\)$

+ 1 - 1
Tests/RunCMake/project/VersionMissingLanguages-stderr.txt

@@ -2,4 +2,4 @@ CMake Error at VersionMissingLanguages.cmake:2 \(project\):
   project with VERSION, DESCRIPTION or HOMEPAGE_URL must use LANGUAGES before
   language names.
 Call Stack \(most recent call first\):
-  CMakeLists.txt:3 \(include\)$
+  CMakeLists.txt:[0-9]+ \(include\)$

+ 1 - 1
Tests/RunCMake/project/VersionTwice-stderr.txt

@@ -1,4 +1,4 @@
 CMake Error at VersionTwice.cmake:2 \(project\):
   VERSION may be specified at most once.
 Call Stack \(most recent call first\):
-  CMakeLists.txt:3 \(include\)$
+  CMakeLists.txt:[0-9]+ \(include\)$