bug-libtool
[Top][All Lists]
Advanced

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

Bug in tests/link.test


From: Garrett Wollman
Subject: Bug in tests/link.test
Date: Tue, 12 Mar 2002 20:01:57 -0500 (EST)

I'm looking at 1.3.4, but the same bug exists at the head of the CVS
tree.

link.test erroneously assumes that the library name it is testing for
is the very last text in "$linkresult".  Because libtool writes a
newline after the library name, "$linkresult" actually ends in a
space.  (POSIX requires that newlines in shell command interpolation
be replaced by spaces.)  Fix:

--- link.test.orig      Tue Mar 12 19:53:42 2002
+++ link.test   Tue Mar 12 19:54:17 2002
@@ -16,7 +16,7 @@
 
 echo "$linkresult"
 case "$linkresult" in
-*../lib/libnlsut.a) ;;
+*../lib/libnlsut.a*) ;;
 *)
   echo "$progname: ../lib/libnlsut.a was not used as expected in linking"
   exit 1

I'm not sure on which platform the original test would have worked;
both bash and ash failed the old test in the way that I describe.

-GAWollman




reply via email to

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