mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #1733] test_lds_src2: feed llvm-mc through stdin, so a WSL LLVM_MC can read it (TEST-LDS-SRC2-MC-STDIN) #1748
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1748
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1733
Author: @MoonEyes
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:tests/lds-src2-mc-stdin📝 Commits (3)
3d910f1test_lds_src2: feed llvm-mc through stdin, so a WSL LLVM_MC can read it (TEST-LDS-SRC2-MC-STDIN)9653e30Merge remote-tracking branch 'origin/main' into pr-173365f0730Merge remote-tracking branch 'origin/main' into pr-1733📊 Changes
1 file changed (+7 additions, -8 deletions)
View changed files
📝
tests/semantic/test_lds_src2.py(+7 -8)📄 Description
Claimed in the coordination issue as: TEST-LDS-SRC2-MC-STDIN
What and why
tests/semantic/test_lds_src2.py'sassemble()wrote the listing to a temporary file and passed its path to llvm-mc. WithLLVM_MCset to the WSL command thattools/mc_command.pyand the build's error message document (wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc), llvm-mc runs inside WSL and cannot open the Windows temp path, so everyEncodingTestssubtest failed (llvm-mc: error: C:\...\in.s: No such file or directory) instead of checking the encodings. It now feeds llvm-mc through stdin, astools/shader_disasm.pydoes, and the now unusedtempfileimport goes. Same class of problem as TEST-CUBE-WINPATH (#419) in another test.Tested
Windows 11, Python 3.14,
python -I scripts/run_semantic_tests.py tests/semantic -p test_lds_src2.py:LLVM_MC=wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc(llvm 21)The rest of the suite is unchanged by this PR (one test file touched).
GPUs tested: n/a
AI-assisted: yes (Claude Code made the change and ran the tests; I checked them)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.