libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patch #9341] testsuite.at: prefer diff --strip-trailing-cr


From: Michael Haubenwallner
Subject: [patch #9341] testsuite.at: prefer diff --strip-trailing-cr
Date: Wed, 10 May 2017 10:24:09 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux i686; rv:53.0) Gecko/20100101 Firefox/53.0

URL:
  <http://savannah.gnu.org/patch/?9341>

                 Summary: testsuite.at: prefer diff --strip-trailing-cr
                 Project: GNU Libtool
            Submitted by: haubi
            Submitted on: Wed 10 May 2017 04:24:08 PM CEST
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

On Cygwin, when using CC=cl.exe (MSVC) as the compiler, some test cases fail
just because of unexpected carriage return output from test binaries.

Fortunately, with GNU diff there is the --strip-trailing-cr flag, which allows
to easily get the libtool test suite agnostic to CR, independent of any host
triplet used:

If 'diff --help' tells about the --strip-trailing-cr flag, attached patch does
wrap the host diff command to add that flag for when run as 'diff -u' via
$at_diff in the test suite, in addition to stop adding CR to expected output
files for mingw.

This allows to succeed following test cases when run on Cygwin with MSVC
environment and these configure options: CC=cl CXX="cl /TP" GCJ=no GOC=no
F77=no FC=no NM=no CFLAGS= CXXFLAGS=

  27: link against a preloaded static library
  30: deplibs_check_method
  40: build and link against a static library
  41: build and link against a dynamic library
  42: build both static and dynamic
  43: allow_undefined_flag
  49: static library interdependencies
 112: dlloader API

Thanks!
/haubi/



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 10 May 2017 04:24:08 PM CEST  Name:
0001-testsuite.at-prefer-diff-strip-trailing-cr.patch  Size: 3kB   By: haubi
[PATCH] testsuite.at: prefer diff --strip-trailing-cr
<http://savannah.gnu.org/patch/download.php?file_id=40648>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?9341>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]