[llvm-branch-commits] [clang-tools-extra] 3c2f0cf - [clangd] Use printf instead of `echo -e` to be compliant with dash

Kadir Cetinkaya via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jun 16 07:55:56 PDT 2020


Author: Kadir Cetinkaya
Date: 2020-06-16T16:55:38+02:00
New Revision: 3c2f0cf15bc00e9568ddb0757a026a81a477bf71

URL: https://github.com/llvm/llvm-project/commit/3c2f0cf15bc00e9568ddb0757a026a81a477bf71
DIFF: https://github.com/llvm/llvm-project/commit/3c2f0cf15bc00e9568ddb0757a026a81a477bf71.diff

LOG: [clangd] Use printf instead of `echo -e` to be compliant with dash

(cherry picked from commit ca1c21d4b659bfa5edb38c4a54b3050e43c4b51a)

Added: 
    

Modified: 
    clang-tools-extra/clangd/test/system-include-extractor.test

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/test/system-include-extractor.test b/clang-tools-extra/clangd/test/system-include-extractor.test
index b1551d8f8ed3..74d395869ad0 100644
--- a/clang-tools-extra/clangd/test/system-include-extractor.test
+++ b/clang-tools-extra/clangd/test/system-include-extractor.test
@@ -12,10 +12,10 @@
 # RUN: echo '[ -z "${args##*"-isysroot=/isysroot"*}" ] || exit' >> %t.dir/my_driver.sh
 # RUN: echo 'echo " $* " | grep " --sysroot /my/sysroot/path " || exit' >> %t.dir/my_driver.sh
 # RUN: echo 'echo line to ignore >&2' >> %t.dir/my_driver.sh
-# RUN: echo 'echo -e "#include <...> search starts here:\r" >&2' >> %t.dir/my_driver.sh
+# RUN: echo 'printf "#include <...> search starts here:\r\n" >&2' >> %t.dir/my_driver.sh
 # RUN: echo 'echo %t.dir/my/dir/ >&2' >> %t.dir/my_driver.sh
 # RUN: echo 'echo %t.dir/my/dir2/ >&2' >> %t.dir/my_driver.sh
-# RUN: echo 'echo -e "End of search list.\r" >&2' >> %t.dir/my_driver.sh
+# RUN: echo 'printf "End of search list.\r\n" >&2' >> %t.dir/my_driver.sh
 # RUN: chmod +x %t.dir/my_driver.sh
 
 # Create header files my/dir/a.h and my/dir2/b.h


        


More information about the llvm-branch-commits mailing list