This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH]: make sizeof long test portable.


I've committed the following change:

2000-04-24  Michael Snyder  <msnyder@seadog.cygnus.com>

        * gdb.base/miscexprs.exp: make sizeof long array test portable.
Index: miscexprs.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/miscexprs.exp,v
retrieving revision 1.1.1.3
retrieving revision 1.2
diff -c -r1.1.1.3 -r1.2
*** miscexprs.exp	1999/06/28 16:03:34	1.1.1.3
--- miscexprs.exp	2000/04/24 21:32:51	1.2
***************
*** 258,284 ****
    }
  
  
! if [istarget "hppa2.0w*-*-*"] then {
! send_gdb "print sizeof(lbig)\n"
  gdb_expect {
!     -re ".\[0-9\]* = 7200.*$gdb_prompt $" {
!         pass "print value of sizeof(lbig)"
        }
!     -re ".*$gdb_prompt $" { fail "print value of sizeof(lbig)" }
!     timeout           { fail "(timeout) print value of sizeof(lbig)" }
    }
- }
- 
- if ![istarget "hppa2.0w*-*-*"] then {
- send_gdb "print sizeof(lbig)\n"
- gdb_expect {
-     -re ".\[0-9\]* = 3600.*$gdb_prompt $" {
-         pass "print value of sizeof(lbig)"
-       }
-     -re ".*$gdb_prompt $" { fail "print value of sizeof(lbig)" }
-     timeout           { fail "(timeout) print value of sizeof(lbig)" }
-   }
- }
  
  send_gdb "print ibig.i\[100\] << 2\n"
  gdb_expect {
--- 258,271 ----
    }
  
  
! send_gdb "print sizeof(lbig)/sizeof(long)\n"
  gdb_expect {
!     -re ".\[0-9\]* = 900.*$gdb_prompt $" {
!         pass "print value of sizeof(lbig)/sizeof(long)"
        }
!     -re ".*$gdb_prompt $" { fail "print value of sizeof(lbig)/sizeof(long)" }
!     timeout     { fail "(timeout) print value of sizeof(lbig)/sizeof(long)" }
    }
  
  send_gdb "print ibig.i\[100\] << 2\n"
  gdb_expect {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]