diff options
author | Rob Savoye <rob@cygnus> | 1993-11-03 18:15:18 +0000 |
---|---|---|
committer | Rob Savoye <rob@cygnus> | 1993-11-03 18:15:18 +0000 |
commit | 73e1e09b8e83ad6bbfb051bbbd8c5094c5f9c7b8 (patch) | |
tree | 988734f64cb1234a3410443373908d5ee1590ad6 /binutils | |
parent | 87cd094b7ce3453d7530e77636684e574eafa40d (diff) | |
download | fsf-binutils-gdb-73e1e09b8e83ad6bbfb051bbbd8c5094c5f9c7b8.zip fsf-binutils-gdb-73e1e09b8e83ad6bbfb051bbbd8c5094c5f9c7b8.tar.gz fsf-binutils-gdb-73e1e09b8e83ad6bbfb051bbbd8c5094c5f9c7b8.tar.bz2 |
* config/udi.exp,unix.exp: Transform tool name.
* binutils.all/*.exp: Clear errorInfo after exec.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/testsuite/config/udi.exp | 26 | ||||
-rw-r--r-- | binutils/testsuite/config/unix.exp | 26 |
2 files changed, 34 insertions, 18 deletions
diff --git a/binutils/testsuite/config/udi.exp b/binutils/testsuite/config/udi.exp index d71e3e9..29ea0d8 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 d71e3e9..29ea0d8 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 "" } # |