]> granicus.if.org Git - clang/commitdiff
[tests] Use 'printf' instead of 'echo -e', which is not part of BSD echo.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 29 Aug 2013 03:02:39 +0000 (03:02 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 29 Aug 2013 03:02:39 +0000 (03:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189562 91177308-0d34-0410-b5e6-96231b3b80d8

test/Format/style-on-command-line.cpp
test/Frontend/verify.c

index 679236f7a465c888f0ea94951fcb4bf85033e40f..9b91259c65069915d7908206d04f7c9c08632069 100644 (file)
@@ -5,7 +5,7 @@
 // RUN: clang-format -style="{lsjd}" %t.cpp 2>&1 | FileCheck -strict-whitespace -check-prefix=CHECK4 %s
 // RUN: [ ! -e %T/.clang-format ] || rm %T/.clang-format
 // RUN: clang-format -style=file %t.cpp 2>&1 | FileCheck -strict-whitespace -check-prefix=CHECK5 %s
-// RUN: echo -e "BasedOnStyle: google\nIndentWidth: 5" > %T/.clang-format
+// RUN: printf "BasedOnStyle: google\nIndentWidth: 5\n" > %T/.clang-format
 // RUN: clang-format -style=file %t.cpp 2>&1 | FileCheck -strict-whitespace -check-prefix=CHECK6 %s
 void f() {
 // CHECK1: {{^        int\* i;$}}
index 20bc90ddb971daa516a8560d1f4a130d715feb22..308f76432ec9aa981159369d42e3747f98592d69 100644 (file)
@@ -116,7 +116,7 @@ unexpected b; // expected-error@33 1-1 {{unknown type}}
 // CHECK6-NEXT:   (frontend): error reading '{{.*}}verify.c.tmp.invalid'
 // CHECK6-NEXT: 2 errors generated.
 
-// RUN: echo -e '//expected-error@2{{1}}\n#error 2' | not %clang_cc1 -verify 2>&1 | FileCheck -check-prefix=CHECK7 %s
+// RUN: printf '//expected-error@2{{1}}\n#error 2\n' | not %clang_cc1 -verify 2>&1 | FileCheck -check-prefix=CHECK7 %s
 
 //      CHECK7: error: 'error' diagnostics expected but not seen:
 // CHECK7-NEXT:   Line 2 (directive at <stdin>:1): 1