branch development updated: Fixed failing test when program-prefix is used

Ileana Dumitrescu <[email protected]>
Newsgroups gmane.comp.gnu.libtool.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script.

ildumi pushed a commit to branch development
in repository libtool.

The following commit(s) were added to refs/heads/development by this push:
     new d846b88d Fixed failing test when program-prefix is used
d846b88d is described below

commit d846b88d2f441ce866effde1c3bb40fa8516c7e8
Author: Ileana Dumitrescu <[email protected]>
AuthorDate: Mon Jun 3 20:38:10 2024 +0300

    Fixed failing test when program-prefix is used
    
    * 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 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/libtoolize.at b/tests/libtoolize.at
index a9ed75a6..1030b15b 100644
--- a/tests/libtoolize.at
+++ b/tests/libtoolize.at
@@ -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
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.