[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FYI] {master} tests: one more use of 'unindent' function
From: |
Stefano Lattarini |
Subject: |
[FYI] {master} tests: one more use of 'unindent' function |
Date: |
Wed, 14 Mar 2012 22:50:55 +0100 |
* tests/yacc-d-cxx.test (write_parse, write_main): Use 'unindent'
instead of ad-hoc sed invocation to strip extra leading whitespace.
Signed-off-by: Stefano Lattarini <address@hidden>
---
tests/yacc-d-cxx.test | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/yacc-d-cxx.test b/tests/yacc-d-cxx.test
index 38d63f3..51d78f1 100755
--- a/tests/yacc-d-cxx.test
+++ b/tests/yacc-d-cxx.test
@@ -24,7 +24,7 @@ required=yacc
write_parse ()
{
header=$1
- sed 's/^ *//' <<END
+ unindent <<END
%{
// Valid C++, but deliberately invalid C.
#include <cstdlib>
@@ -41,7 +41,7 @@ END
write_main ()
{
header=$1
- sed 's/^ *//' <<END
+ unindent <<END
// Valid C++, but deliberately invalid C.
#include <cstdio>
#include "$header"
--
1.7.9
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [FYI] {master} tests: one more use of 'unindent' function,
Stefano Lattarini <=