mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user