r189562 - [tests] Use 'printf' instead of 'echo -e', which is not part of BSD echo.
Daniel Dunbar
daniel at zuster.org
Wed Aug 28 20:02:39 PDT 2013
Author: ddunbar
Date: Wed Aug 28 22:02:39 2013
New Revision: 189562
URL: http://llvm.org/viewvc/llvm-project?rev=189562&view=rev
Log:
[tests] Use 'printf' instead of 'echo -e', which is not part of BSD echo.
Modified:
cfe/trunk/test/Format/style-on-command-line.cpp
cfe/trunk/test/Frontend/verify.c
Modified: cfe/trunk/test/Format/style-on-command-line.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Format/style-on-command-line.cpp?rev=189562&r1=189561&r2=189562&view=diff
==============================================================================
--- cfe/trunk/test/Format/style-on-command-line.cpp (original)
+++ cfe/trunk/test/Format/style-on-command-line.cpp Wed Aug 28 22:02:39 2013
@@ -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;$}}
Modified: cfe/trunk/test/Frontend/verify.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/verify.c?rev=189562&r1=189561&r2=189562&view=diff
==============================================================================
--- cfe/trunk/test/Frontend/verify.c (original)
+++ cfe/trunk/test/Frontend/verify.c Wed Aug 28 22:02:39 2013
@@ -116,7 +116,7 @@ unexpected b; // expected-error at 33 1-1 {
// CHECK6-NEXT: (frontend): error reading '{{.*}}verify.c.tmp.invalid'
// CHECK6-NEXT: 2 errors generated.
-// RUN: echo -e '//expected-error at 2{{1}}\n#error 2' | not %clang_cc1 -verify 2>&1 | FileCheck -check-prefix=CHECK7 %s
+// RUN: printf '//expected-error at 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
More information about the cfe-commits
mailing list