From 99ea38f42dbbc72adcddd6bc7272ab19e4c1a88f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 18 Jul 2018 16:17:53 +0000 Subject: [PATCH] [llvm-objcopy] %python wants to be in quotes, because it might contain spaces llvm-svn: 337399 --- llvm/test/tools/llvm-objcopy/auto-remove-shndx.test | 2 +- llvm/test/tools/llvm-objcopy/many-sections.test | 2 +- llvm/test/tools/llvm-objcopy/remove-shndx.test | 2 +- llvm/test/tools/llvm-objcopy/strict-no-add.test | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/test/tools/llvm-objcopy/auto-remove-shndx.test b/llvm/test/tools/llvm-objcopy/auto-remove-shndx.test index 5452f34..349d35a 100644 --- a/llvm/test/tools/llvm-objcopy/auto-remove-shndx.test +++ b/llvm/test/tools/llvm-objcopy/auto-remove-shndx.test @@ -1,4 +1,4 @@ -# RUN: %python %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t +# RUN: '%python' %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t # RUN: llvm-objcopy -R .text -R s0 -R s1 -R s2 -R s3 -R s4 -R s5 -R s6 %t %t2 # RUN: llvm-readobj -sections %t2 | FileCheck --check-prefix=SECS %s diff --git a/llvm/test/tools/llvm-objcopy/many-sections.test b/llvm/test/tools/llvm-objcopy/many-sections.test index 7aaa3a7..b514fbe 100644 --- a/llvm/test/tools/llvm-objcopy/many-sections.test +++ b/llvm/test/tools/llvm-objcopy/many-sections.test @@ -1,4 +1,4 @@ -RUN: %python %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t +RUN: '%python' %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t RUN: llvm-objcopy %t %t2 RUN: llvm-readobj -file-headers %t2 | FileCheck --check-prefix=EHDR %s RUN: llvm-readobj -sections %t2 | FileCheck --check-prefix=SECS %s diff --git a/llvm/test/tools/llvm-objcopy/remove-shndx.test b/llvm/test/tools/llvm-objcopy/remove-shndx.test index b8ea94c..77f4622 100644 --- a/llvm/test/tools/llvm-objcopy/remove-shndx.test +++ b/llvm/test/tools/llvm-objcopy/remove-shndx.test @@ -1,6 +1,6 @@ # This test checks to see that a .symtab_shndx section is added to any binary # that needs it, even if the original was removed. -RUN: %python %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t +RUN: '%python' %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t RUN: llvm-objcopy -R .symtab_shndx %t %t2 RUN: llvm-readobj -sections %t2 | FileCheck %s diff --git a/llvm/test/tools/llvm-objcopy/strict-no-add.test b/llvm/test/tools/llvm-objcopy/strict-no-add.test index 15f5251..00d5dc1 100644 --- a/llvm/test/tools/llvm-objcopy/strict-no-add.test +++ b/llvm/test/tools/llvm-objcopy/strict-no-add.test @@ -1,7 +1,7 @@ # This test makes sure that sections added at the end that don't have symbols # defined in them don't trigger the creation of a large index table. -RUN: %python %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t.0 +RUN: '%python' %p/Inputs/ungzip.py %p/Inputs/many-sections.o.gz > %t.0 RUN: cat %p/Inputs/alloc-symtab.o > %t RUN: llvm-objcopy -R .text -R s0 -R s1 -R s2 -R s3 -R s4 -R s5 -R s6 %t.0 %t2 RUN: llvm-objcopy -add-section=.s0=%t -add-section=.s1=%t -add-section=.s2=%t %t2 %t2 -- 2.7.4