]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Fixed failing test when program-prefix is used
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Mon, 3 Jun 2024 17:38:10 +0000 (20:38 +0300)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Mon, 3 Jun 2024 17:38:10 +0000 (20:38 +0300)
* tests/libtoolize.at: When -program-prefix is used, stdout for the
  program changes from the expected output. As a result, the test
  fails. Replaced the transformed name to account for program-prefix.

tests/libtoolize.at

index a9ed75a675d9e459369bac071593819d54b17124..1030b15b167bdb5d0f240229ea5c59fd61d4e8c0 100644 (file)
@@ -1074,6 +1074,10 @@ libtoolize: linking file 'ltdl/ltdl.h'
 libtoolize: linking file 'ltdl/slist.c'
 ]])
 
+# Replace transformed name of $lt_name to account for program-prefix
+lt_name=`$ECHO "$LIBTOOLIZE" | $SED "s|^.*/||"`
+$SED -i "s/libtoolize/$lt_name/g" expout
+
 AT_DATA([no-m4],
 [[#! /bin/sh
 echo 'error: do not call m4' >&2