File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
lldb/packages/Python/lldbsuite/test Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -997,7 +997,10 @@ def is_toolchain_with_mte():
997
997
f .close ()
998
998
999
999
cmd = f"{ compiler_path } -x c -o { f .name } -"
1000
- if subprocess .run (cmd , input = "int main() {}" .encode ()).returncode != 0 :
1000
+ if (
1001
+ subprocess .run (cmd , shell = True , input = "int main() {}" .encode ()).returncode
1002
+ != 0
1003
+ ):
1001
1004
os .remove (f .name )
1002
1005
# Cannot compile at all, don't skip the test
1003
1006
# so that we report the broken compiler normally.
@@ -1014,7 +1017,7 @@ def is_toolchain_with_mte():
1014
1017
void* ptr = __arm_mte_create_random_tag((void*)(0), 0);
1015
1018
}"""
1016
1019
cmd = f"{ compiler_path } -march=armv8.5-a+memtag -x c -o { f .name } -"
1017
- res = subprocess .run (cmd , input = test_src .encode ())
1020
+ res = subprocess .run (cmd , shell = True , input = test_src .encode ())
1018
1021
os .remove (f .name )
1019
1022
if res .returncode != 0 :
1020
1023
return "Toolchain does not support MTE"
You can’t perform that action at this time.
0 commit comments