From: Ileana Dumitrescu Date: Mon, 3 Jun 2024 17:38:10 +0000 (+0300) Subject: Fixed failing test when program-prefix is used X-Git-Tag: v2.5.1~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d846b88d2f441ce866effde1c3bb40fa8516c7e8;p=thirdparty%2Flibtool.git 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. --- diff --git a/tests/libtoolize.at b/tests/libtoolize.at index a9ed75a67..1030b15b1 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