[llvm-branch-commits] [lld] 400d8b0 - [Test] Adjust quoting in archive-thin.test for spaces in paths (#151707)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Aug 5 04:30:41 PDT 2025


Author: bd1976bris
Date: 2025-08-05T10:51:55Z
New Revision: 400d8b067591d7052f04c6486d5ec533871ef29c

URL: https://github.com/llvm/llvm-project/commit/400d8b067591d7052f04c6486d5ec533871ef29c
DIFF: https://github.com/llvm/llvm-project/commit/400d8b067591d7052f04c6486d5ec533871ef29c.diff

LOG: [Test] Adjust quoting in archive-thin.test for spaces in paths (#151707)

As suggested in review (see: #149425), I believed that using single
quotes was a nicer quoting scheme that correctly handled paths with
spaces. Alas, build bot failures have demonstrated that this is not the
case.

Revert to the original quoting scheme (see: #146749).

(cherry picked from commit 73ce0aca72348a80dc2c2175516a0993ab8d6be3)

Added: 
    

Modified: 
    lld/test/ELF/dtlto/archive-thin.test

Removed: 
    


################################################################################
diff  --git a/lld/test/ELF/dtlto/archive-thin.test b/lld/test/ELF/dtlto/archive-thin.test
index bcd5f138459b0..df3c2aadb06eb 100644
--- a/lld/test/ELF/dtlto/archive-thin.test
+++ b/lld/test/ELF/dtlto/archive-thin.test
@@ -29,9 +29,9 @@ RUN: mkdir %t/out && cd %t/out
 ## received JSON, pretty-prints the JSON and the supplied arguments, and then
 ## exits with an error. This allows FileCheck directives to verify the
 ## distributor inputs.
-RUN: echo '%t/t1.a %t/lib/t2.a ../t3.a \
-RUN:   --thinlto-distributor="%python" \
-RUN:   --thinlto-distributor-arg="%llvm_src_root/utils/dtlto/validate.py"' > rsp
+RUN: echo "%t/t1.a %t/lib/t2.a ../t3.a \
+RUN:   --thinlto-distributor=\"%python\" \
+RUN:   --thinlto-distributor-arg=\"%llvm_src_root/utils/dtlto/validate.py\"" > rsp
 
 ## Link thin archives using -u/--undefined.
 RUN: not ld.lld @rsp -u t1 -u t2 -u t3 2>&1 | FileCheck %s


        


More information about the llvm-branch-commits mailing list