diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-03-14 22:48:22 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-03-14 22:48:22 +0100 |
commit | d1afb320a6bae3b94bfe53c7f6e32bc998bc28cf (patch) | |
tree | 0c241b7e35bd30cf94c700103e6ee746aecb34c0 /tests/yacc-d-cxx.test | |
parent | 895e13693b56efe2aa2f42bbb673a8ce80819317 (diff) | |
download | automake-d1afb320a6bae3b94bfe53c7f6e32bc998bc28cf.tar.gz |
tests: one more use of 'unindent' function
* 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 <stefano.lattarini@gmail.com>
Diffstat (limited to 'tests/yacc-d-cxx.test')
-rwxr-xr-x | 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 38d63f3f1..51d78f1b3 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" |