From: Daniel Dunbar Date: Thu, 29 Aug 2013 03:02:39 +0000 (+0000) Subject: [tests] Use 'printf' instead of 'echo -e', which is not part of BSD echo. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4516a5fea62c1b6e2123b9c8b1627905e790963;p=clang [tests] Use 'printf' instead of 'echo -e', which is not part of BSD echo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189562 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Format/style-on-command-line.cpp b/test/Format/style-on-command-line.cpp index 679236f7a4..9b91259c65 100644 --- a/test/Format/style-on-command-line.cpp +++ b/test/Format/style-on-command-line.cpp @@ -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;$}} diff --git a/test/Frontend/verify.c b/test/Frontend/verify.c index 20bc90ddb9..308f76432e 100644 --- a/test/Frontend/verify.c +++ b/test/Frontend/verify.c @@ -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 :1): 1