home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / binutils-2.2.1 / binutils / testsuite / config / unix.exp < prev    next >
Encoding:
Text File  |  1993-04-07  |  1.4 KB  |  46 lines

  1. #   Copyright (C) 1988, 1990, 1991, 1992 Free Software Foundation, Inc.
  2.  
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 2 of the License, or
  6. # (at your option) any later version.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10. # GNU General Public License for more details.
  11. # You should have received a copy of the GNU General Public License
  12. # along with this program; if not, write to the Free Software
  13. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  14.  
  15. # Please email any bugs, comments, and/or additions to this file to:
  16. # bug-dejagnu@prep.ai.mit.edu
  17.  
  18. # This file was written by Rob Savoye. (rob@cygnus.com)
  19.  
  20. load_lib util-defs.exp
  21.  
  22. #
  23. # nm_version -- extract and print the version number of nm
  24. #
  25. proc nm_version { } {
  26.     set tmp [exec $NM +version]
  27.     regexp " \[0-9\.\]+" $tmp version
  28.     clone_output "[which $NM] version $version\n"
  29.     unset tmp
  30.     unset version
  31. }
  32.  
  33. #
  34. # add some basic error trapping. These mostly catch programming error's
  35. # within the tests themselves
  36. #
  37. expect_before {
  38.     buffer_full           { error "internal buffer is full." }
  39.     "can't open '*'" { error "Can't open test file." }
  40. }
  41.  
  42.  
  43.  
  44.