Skip to content

[Test] Account for spaces in paths in the new dtlto/files.test #146749

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

Conversation

bd1976bris
Copy link
Collaborator

This uses LIT substitutions in a response file that could contain spaces in paths. This caused a failure on a build bot where the path to the system Python executable was "C:\Program Files\Python310\python.exe", as reported in #142757.

Add appropriate quoting to fix the issue.

This uses LIT substitutions in a response file that could contain
spaces in paths. This caused a failure on a build bot where the path
to the system Python executable was
"C:\Program Files\Python310\python.exe", as reported in llvm#142757.

Add appropriate quoting to fix the issue.
@llvmbot
Copy link
Member

llvmbot commented Jul 2, 2025

@llvm/pr-subscribers-lld-elf

Author: bd1976bris (bd1976bris)

Changes

This uses LIT substitutions in a response file that could contain spaces in paths. This caused a failure on a build bot where the path to the system Python executable was "C:\Program Files\Python310\python.exe", as reported in #142757.

Add appropriate quoting to fix the issue.


Full diff: https://github.com/llvm/llvm-project/pull/146749.diff

1 Files Affected:

  • (modified) lld/test/ELF/dtlto/files.test (+2-2)
diff --git a/lld/test/ELF/dtlto/files.test b/lld/test/ELF/dtlto/files.test
index 727ef53c7f5b5..54bcf587f46b9 100644
--- a/lld/test/ELF/dtlto/files.test
+++ b/lld/test/ELF/dtlto/files.test
@@ -24,8 +24,8 @@ RUN: llc t2.ll --filetype=obj -o t2.o
 ## the contents of the object files supplied on the command line into the
 ## output object files in job order.
 RUN: echo "t1.bc t2.bc --start-lib t3.bc --end-lib -o my.elf \
-RUN:   --thinlto-distributor=%python \
-RUN:   --thinlto-distributor-arg=%llvm_src_root/utils/dtlto/mock.py \
+RUN:   --thinlto-distributor=\"%python\" \
+RUN:   --thinlto-distributor-arg=\"%llvm_src_root/utils/dtlto/mock.py\" \
 RUN:   --thinlto-distributor-arg=t1.o \
 RUN:   --thinlto-distributor-arg=t2.o" > l.rsp
 

@llvmbot
Copy link
Member

llvmbot commented Jul 2, 2025

@llvm/pr-subscribers-lld

Author: bd1976bris (bd1976bris)

Changes

This uses LIT substitutions in a response file that could contain spaces in paths. This caused a failure on a build bot where the path to the system Python executable was "C:\Program Files\Python310\python.exe", as reported in #142757.

Add appropriate quoting to fix the issue.


Full diff: https://github.com/llvm/llvm-project/pull/146749.diff

1 Files Affected:

  • (modified) lld/test/ELF/dtlto/files.test (+2-2)
diff --git a/lld/test/ELF/dtlto/files.test b/lld/test/ELF/dtlto/files.test
index 727ef53c7f5b5..54bcf587f46b9 100644
--- a/lld/test/ELF/dtlto/files.test
+++ b/lld/test/ELF/dtlto/files.test
@@ -24,8 +24,8 @@ RUN: llc t2.ll --filetype=obj -o t2.o
 ## the contents of the object files supplied on the command line into the
 ## output object files in job order.
 RUN: echo "t1.bc t2.bc --start-lib t3.bc --end-lib -o my.elf \
-RUN:   --thinlto-distributor=%python \
-RUN:   --thinlto-distributor-arg=%llvm_src_root/utils/dtlto/mock.py \
+RUN:   --thinlto-distributor=\"%python\" \
+RUN:   --thinlto-distributor-arg=\"%llvm_src_root/utils/dtlto/mock.py\" \
 RUN:   --thinlto-distributor-arg=t1.o \
 RUN:   --thinlto-distributor-arg=t2.o" > l.rsp
 

Copy link
Collaborator

@nga888 nga888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@bd1976bris bd1976bris merged commit da01257 into llvm:main Jul 2, 2025
12 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 2, 2025

LLVM Buildbot has detected a new failure on builder lldb-x86_64-debian running on lldb-x86_64-debian while building lld at step 6 "test".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/25874

Here is the relevant piece of the build log for the reference
Step 6 (test) failure: build (failure)
...
UNSUPPORTED: lldb-shell :: SymbolFile/PDB/variables.test (3058 of 3069)
UNSUPPORTED: lldb-shell :: ScriptInterpreter/Lua/lua.test (3059 of 3069)
UNSUPPORTED: lldb-shell :: ScriptInterpreter/Lua/quit.test (3060 of 3069)
UNSUPPORTED: lldb-shell :: Expr/TestEnumExtensibility.m (3061 of 3069)
UNSUPPORTED: lldb-shell :: ScriptInterpreter/Lua/fail_breakpoint_oneline.test (3062 of 3069)
UNSUPPORTED: lldb-shell :: ScriptInterpreter/Python/Crashlog/interactive_crashlog_invalid_target.test (3063 of 3069)
PASS: lldb-unit :: Utility/./UtilityTests/85/129 (3064 of 3069)
UNSUPPORTED: lldb-shell :: ScriptInterpreter/Lua/breakpoint_oneline_callback.test (3065 of 3069)
PASS: lldb-api :: terminal/TestEditlineCompletions.py (3066 of 3069)
UNRESOLVED: lldb-api :: tools/lldb-dap/launch/TestDAP_launch.py (3067 of 3069)
******************** TEST 'lldb-api :: tools/lldb-dap/launch/TestDAP_launch.py' FAILED ********************
Script:
--
/usr/bin/python3 /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/worker/2.0.1/lldb-x86_64-debian/build/./lib --env LLVM_INCLUDE_DIR=/home/worker/2.0.1/lldb-x86_64-debian/build/include --env LLVM_TOOLS_DIR=/home/worker/2.0.1/lldb-x86_64-debian/build/./bin --arch x86_64 --build-dir /home/worker/2.0.1/lldb-x86_64-debian/build/lldb-test-build.noindex --lldb-module-cache-dir /home/worker/2.0.1/lldb-x86_64-debian/build/lldb-test-build.noindex/module-cache-lldb/lldb-api --clang-module-cache-dir /home/worker/2.0.1/lldb-x86_64-debian/build/lldb-test-build.noindex/module-cache-clang/lldb-api --executable /home/worker/2.0.1/lldb-x86_64-debian/build/./bin/lldb --compiler /home/worker/2.0.1/lldb-x86_64-debian/build/./bin/clang --dsymutil /home/worker/2.0.1/lldb-x86_64-debian/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/worker/2.0.1/lldb-x86_64-debian/build/./bin --lldb-obj-root /home/worker/2.0.1/lldb-x86_64-debian/build/tools/lldb --lldb-libs-dir /home/worker/2.0.1/lldb-x86_64-debian/build/./lib --cmake-build-type Release -t /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/lldb/test/API/tools/lldb-dap/launch -p TestDAP_launch.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 21.0.0git (https://github.com/llvm/llvm-project.git revision da01257c3a16b728718f9bde8bbe435678d96fd8)
  clang revision da01257c3a16b728718f9bde8bbe435678d96fd8
  llvm revision da01257c3a16b728718f9bde8bbe435678d96fd8
Skipping the following test categories: ['libc++', 'dsym', 'gmodules', 'debugserver', 'objc']

--
Command Output (stderr):
--
Change dir to: /home/worker/2.0.1/lldb-x86_64-debian/llvm-project/lldb/test/API/tools/lldb-dap/launch
runCmd: settings clear --all

output: 

runCmd: settings set symbols.enable-external-lookup false

output: 

runCmd: settings set target.inherit-tcc true

output: 

runCmd: settings set target.disable-aslr false

output: 

runCmd: settings set target.detach-on-error false

output: 

runCmd: settings set target.auto-apply-fixits false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants