From: Rob Savoye Date: Wed, 3 Nov 1993 18:15:18 +0000 (+0000) Subject: * config/udi.exp,unix.exp: Transform tool name. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73e1e09b8e83ad6bbfb051bbbd8c5094c5f9c7b8;p=binutils-gdb.git * config/udi.exp,unix.exp: Transform tool name. * binutils.all/*.exp: Clear errorInfo after exec. --- diff --git a/binutils/testsuite/config/udi.exp b/binutils/testsuite/config/udi.exp index d71e3e9c283..29ea0d861b2 100644 --- a/binutils/testsuite/config/udi.exp +++ b/binutils/testsuite/config/udi.exp @@ -21,15 +21,23 @@ load_lib util-defs.exp -# -# nm_version -- extract and print the version number of nm -# -proc nm_version { } { - set tmp [exec $NM +version] - regexp " \[0-9\.\]+" $tmp version - clone_output "[which $NM] version $version\n" - unset tmp - unset version +if ![info exists NM] then { + set NM [transform nm] +} +if ![info exists NMFLAGS] then { + set NMFLAGS "" +} +if ![info exists SIZE] then { + set SIZE [transform size] +} +if ![info exists SIZEFLAGS] then { + set SIZEFLAGS "" +} +if ![info exists OBJDUMP] then { + set OBJDUMP [transform objdump] +} +if ![info exists OBJDUMPFLAGS] then { + set OBJDUMPFLAGS "" } # diff --git a/binutils/testsuite/config/unix.exp b/binutils/testsuite/config/unix.exp index d71e3e9c283..29ea0d861b2 100644 --- a/binutils/testsuite/config/unix.exp +++ b/binutils/testsuite/config/unix.exp @@ -21,15 +21,23 @@ load_lib util-defs.exp -# -# nm_version -- extract and print the version number of nm -# -proc nm_version { } { - set tmp [exec $NM +version] - regexp " \[0-9\.\]+" $tmp version - clone_output "[which $NM] version $version\n" - unset tmp - unset version +if ![info exists NM] then { + set NM [transform nm] +} +if ![info exists NMFLAGS] then { + set NMFLAGS "" +} +if ![info exists SIZE] then { + set SIZE [transform size] +} +if ![info exists SIZEFLAGS] then { + set SIZEFLAGS "" +} +if ![info exists OBJDUMP] then { + set OBJDUMP [transform objdump] +} +if ![info exists OBJDUMPFLAGS] then { + set OBJDUMPFLAGS "" } #