diff options
author | Fred Fish <fnf@specifix.com> | 1996-01-04 21:12:12 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1996-01-04 21:12:12 +0000 |
commit | 4b2dd77883e30f3a8104f37953e28f34e45b5ab7 (patch) | |
tree | 83f562906cc0cdf61cb79636f6832c81635f2977 | |
parent | 7531f36e8e7f241cdf8d03ceb99af99f1a784ec0 (diff) | |
download | gdb-4b2dd77883e30f3a8104f37953e28f34e45b5ab7.zip gdb-4b2dd77883e30f3a8104f37953e28f34e45b5ab7.tar.gz gdb-4b2dd77883e30f3a8104f37953e28f34e45b5ab7.tar.bz2 |
* gdb.base/corefile.exp: When generating a core, discard any
error messages about ulimit not found and the "core dumped"
message from the shell that runs the coredumper.
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/corefile.exp | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index b69b31e..72446f5 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +Thu Jan 4 08:17:22 1996 Fred Fish <fnf@cygnus.com> + + * gdb.base/corefile.exp: When generating a core, discard any + error messages about ulimit not found and the "core dumped" + message from the shell that runs the coredumper. + Wed Jan 3 01:30:41 1996 Jeffrey A Law (law@cygnus.com) * lib/gdb.exp (skip_chill_tests): Skip them on the PA too. diff --git a/gdb/testsuite/gdb.base/corefile.exp b/gdb/testsuite/gdb.base/corefile.exp index 1c30e0c..4218edf 100644 --- a/gdb/testsuite/gdb.base/corefile.exp +++ b/gdb/testsuite/gdb.base/corefile.exp @@ -57,7 +57,7 @@ if ![file exists ${objdir}/${subdir}/corefile] then { # Some systems append "core" to the name of the program; others append # the name of the program to "core". set found 0 - catch "system \"cd ${objdir}/${subdir}; ulimit -c unlimited; ${binfile}\"" + catch "system \"(cd ${objdir}/${subdir}; ulimit -c unlimited; ${binfile}; true) >/dev/null 2>&1\"" # execute_anywhere "${binfile}" foreach i "${objdir}/${subdir}/core ${objdir}/${subdir}/core.coremaker.c ${binfile}.core" { set exec_output [execute_anywhere "ls $i"] @@ -164,16 +164,14 @@ gdb_test "print coremaker_data" "\\\$$decimal = 202" gdb_test "print coremaker_bss" "\\\$$decimal = 10" gdb_test "print coremaker_ro" "\\\$$decimal = 201" -# Linux GDB is unable to backtrace properly from an abort system call, -# so trying to access a local variable in the stack fails too. -setup_xfail "i*86-*-linux*" "i*86-*-sysv4*" +setup_xfail "i*86-*-sysv4*" gdb_test "print func2::coremaker_local" "\\\$$decimal = {0, 1, 2, 3, 4}" # Somehow we better test the ability to read the registers out of the core # file correctly. I don't think the other tests do this. # Haven't investigated this xfail -setup_xfail "m68k-*-hpux*" "i*86-*-linux*" "i*86-*-sysv4*" +setup_xfail "m68k-*-hpux*" "i*86-*-sysv4*" # Strange that this one depends upon being native compiled. gdb_test "bt" "abort.*func2.*func1.*main.*" "backtrace in corefile.exp" |