Re: Windows Line Endings

Roumen Petrov <[email protected]>
Newsgroups gmane.comp.gnu.libtool.patches
Message-ID <[email protected]>
Peter Rosin wrote:
> [SNIP]
> That part of mdemo now works, thanks!
>
> But that said, I'm about to push this revert of one of the line
> ending "fixes" that was masked by this orthogonal problem.
>
> Cheers,
> Peter
>
>
>  From b78fd9740ef6a2ed67a1ef14e76483af784fb5f0 Mon Sep 17 00:00:00 2001
> From: Peter Rosin <[email protected]>
> Date: Sun, 7 Oct 2012 00:57:26 +0200
> Subject: [PATCH] tests: refix line ending problems on MinGW.
>
> In commit 22f5750, one of the hunks actually introduced
> line ending problems. Revert that hunk.
>
> * tests/mdemo.at: Use AT_DATA for expected output when the
> output from compiled programs is fed through $EGREP.
>
> Signed-off-by: Peter Rosin <[email protected]>
> ---
>   tests/mdemo.at |    3 ++-
>   1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/tests/mdemo.at b/tests/mdemo.at
> index 70c5532..48b7f63 100644
> --- a/tests/mdemo.at
> +++ b/tests/mdemo.at
> @@ -824,7 +824,8 @@ int main (int argc, char **argv)
>   }
>   ]])
>
> -LT_AT_HOST_DATA([expout],
> +# Not using LT_AT_HOST_DATA below, since $EGREP normalizes line endings.
> +AT_DATA([expout],
>   [[Welcome to GNU libtool mdemo2!
>   module name: foo1
>   module reference count: 1
> --
> 1.7.9
>
>

And now test fail in cross environment : linux for mingw host

Roumen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.