summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-09-30 15:46:56 (GMT)
committerBrad King <brad.king@kitware.com>2021-10-05 13:13:23 (GMT)
commit75901f0472016adfe89e246f3f0cb32d57513f8a (patch)
tree25b685c4e92fb04803c9f0608d217de5dfe16ec4 /Tests
parent0e86fea0bee63592e024c330b22939ec7846712e (diff)
downloadCMake-75901f0472016adfe89e246f3f0cb32d57513f8a.zip
CMake-75901f0472016adfe89e246f3f0cb32d57513f8a.tar.gz
CMake-75901f0472016adfe89e246f3f0cb32d57513f8a.tar.bz2
Tests: Fix RunCMake.XcodeProject XcodeIOSInstallCombined cases for Xcode 13.0
The output of `otool -vf` now contains additional content that happens to be matched by our architectures regex. Make the regex more strict.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/XcodeProject/XcodeIOSInstallCombined-install-check.cmake4
-rw-r--r--Tests/RunCMake/XcodeProject/XcodeIOSInstallCombinedPrune-install-check.cmake4
2 files changed, 4 insertions, 4 deletions
diff --git a/Tests/RunCMake/XcodeProject/XcodeIOSInstallCombined-install-check.cmake b/Tests/RunCMake/XcodeProject/XcodeIOSInstallCombined-install-check.cmake
index a1c0671..53b885d 100644
--- a/Tests/RunCMake/XcodeProject/XcodeIOSInstallCombined-install-check.cmake
+++ b/Tests/RunCMake/XcodeProject/XcodeIOSInstallCombined-install-check.cmake
@@ -9,8 +9,8 @@ function(verify_architectures file)
return()
endif()
- string(REGEX MATCHALL "architecture [^ \n\t]+" architectures ${otool_out})
- string(REPLACE "architecture " "" actual "${architectures}")
+ string(REGEX MATCHALL "\narchitecture [^ \n\t()]+" architectures ${otool_out})
+ string(REPLACE "\narchitecture " "" actual "${architectures}")
list(SORT actual)
set(expected arm64 armv7 i386 x86_64)
diff --git a/Tests/RunCMake/XcodeProject/XcodeIOSInstallCombinedPrune-install-check.cmake b/Tests/RunCMake/XcodeProject/XcodeIOSInstallCombinedPrune-install-check.cmake
index 83da17d..37bb4d5 100644
--- a/Tests/RunCMake/XcodeProject/XcodeIOSInstallCombinedPrune-install-check.cmake
+++ b/Tests/RunCMake/XcodeProject/XcodeIOSInstallCombinedPrune-install-check.cmake
@@ -9,8 +9,8 @@ function(verify_architectures file)
return()
endif()
- string(REGEX MATCHALL "architecture [^ \n\t]+" architectures ${otool_out})
- string(REPLACE "architecture " "" actual "${architectures}")
+ string(REGEX MATCHALL "\narchitecture [^ \n\t()]+" architectures ${otool_out})
+ string(REPLACE "\narchitecture " "" actual "${architectures}")
list(SORT actual)
set(expected armv7 x86_64)