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.
This commit is contained in:
Brad King
2021-09-30 11:46:56 -04:00
parent 0e86fea0be
commit 75901f0472
2 changed files with 4 additions and 4 deletions
@@ -9,8 +9,8 @@ function(verify_architectures file)
return() return()
endif() endif()
string(REGEX MATCHALL "architecture [^ \n\t]+" architectures ${otool_out}) string(REGEX MATCHALL "\narchitecture [^ \n\t()]+" architectures ${otool_out})
string(REPLACE "architecture " "" actual "${architectures}") string(REPLACE "\narchitecture " "" actual "${architectures}")
list(SORT actual) list(SORT actual)
set(expected arm64 armv7 i386 x86_64) set(expected arm64 armv7 i386 x86_64)
@@ -9,8 +9,8 @@ function(verify_architectures file)
return() return()
endif() endif()
string(REGEX MATCHALL "architecture [^ \n\t]+" architectures ${otool_out}) string(REGEX MATCHALL "\narchitecture [^ \n\t()]+" architectures ${otool_out})
string(REPLACE "architecture " "" actual "${architectures}") string(REPLACE "\narchitecture " "" actual "${architectures}")
list(SORT actual) list(SORT actual)
set(expected armv7 x86_64) set(expected armv7 x86_64)