Skip to content

Commit 32c744a

Browse files
authored
[lldb] Fixed the @skipUnlessAArch64MTELinuxCompiler decorator (#115480)
It is broken after #115337 https://lab.llvm.org/buildbot/#/builders/195/builds/794
1 parent e5c6d1f commit 32c744a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lldb/packages/Python/lldbsuite/test/decorators.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,10 @@ def is_toolchain_with_mte():
997997
f.close()
998998

999999
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+
):
10011004
os.remove(f.name)
10021005
# Cannot compile at all, don't skip the test
10031006
# so that we report the broken compiler normally.
@@ -1014,7 +1017,7 @@ def is_toolchain_with_mte():
10141017
void* ptr = __arm_mte_create_random_tag((void*)(0), 0);
10151018
}"""
10161019
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())
10181021
os.remove(f.name)
10191022
if res.returncode != 0:
10201023
return "Toolchain does not support MTE"

0 commit comments

Comments
 (0)