diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2006-07-04 09:40:28 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2006-07-04 09:40:28 +0000 |
commit | f6c957d29dcf36f30d86e6c76501f7d3be03ad9c (patch) | |
tree | 3e76a132279084d54d74f9981c42131a7b9bc4ee /gdb/testsuite/gdb.base/huge.exp | |
parent | 725fbf6c1de47d458091a668495285f56da22d63 (diff) | |
download | gdb-f6c957d29dcf36f30d86e6c76501f7d3be03ad9c.zip gdb-f6c957d29dcf36f30d86e6c76501f7d3be03ad9c.tar.gz gdb-f6c957d29dcf36f30d86e6c76501f7d3be03ad9c.tar.bz2 |
* gdb.base/huge.c: Allow CRASH_GDB to be set from command
line.
* gdb.base/huge.exp: Loop over compilation to find a size that
is acceptable.
* gdb.base/remote.exp: Correct expected strings.
* gdb.dwarf2/mac-fileno.S: Avoid # comments.
Diffstat (limited to 'gdb/testsuite/gdb.base/huge.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/huge.exp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/huge.exp b/gdb/testsuite/gdb.base/huge.exp index 733ddee..68354ec 100644 --- a/gdb/testsuite/gdb.base/huge.exp +++ b/gdb/testsuite/gdb.base/huge.exp @@ -36,7 +36,13 @@ if [target_info exists gdb,skip_huge_test] { set testfile "huge" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} -if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { + +for { set size [expr 2 * 1024 * 1024] } { $size > 10 } { set size [expr $size / 2] } { + if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ + executable [list debug "additional_flags=-DCRASH_GDB=$size"]] \ + == "" } break +} +if { $size < 10 } { gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail." } |