Skip to content

[Test] Disable Linux perf test under WSL #137822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions llvm/test/ExecutionEngine/JITLink/x86-64/ELF_perf.s
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# REQUIRES: native && x86_64-linux

# Linux perf not supported by Windows Kernel's Linux syscall emulation layer
# https://github.com/microsoft/WSL/issues/4595
# UNSUPPORTED: wsl1

# FIXME: Investigate why broken with MSAN
# UNSUPPORTED: msan

Expand Down
7 changes: 7 additions & 0 deletions llvm/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ def version_int(ver):
# Others/can-execute.txt
config.available_features.add("can-execute")

# Detect Windows Subsystem for Linux (WSL)
uname_r = platform.uname().release
if uname_r.endswith("-Microsoft"):
config.available_features.add("wsl1")
elif uname_r.endswith("microsoft-standard-WSL2"):
config.available_features.add("wsl2")

# Loadable module
if config.has_plugins:
config.available_features.add("plugins")
Expand Down