* gdb.base/corefile.exp: Recognize the message saying that GDB
authorJim Blandy <jimb@codesourcery.com>
Mon, 17 Dec 2001 21:03:48 +0000 (21:03 +0000)
committerJim Blandy <jimb@codesourcery.com>
Mon, 17 Dec 2001 21:03:48 +0000 (21:03 +0000)
can't find the core file's registers as a failure.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/corefile.exp

index bd768ce1ac81baed380d2be61b4f7262bf8f5ab1..80e8d31e6a0d9a7882a568dea02d5e2cb614d2d0 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-17  Jim Blandy  <jimb@redhat.com>
+
+       * gdb.base/corefile.exp: Recognize the message saying that GDB
+       can't find the core file's registers as a failure.
+
 2001-12-13  Jackie Smith Cashion  <jsmith@redhat.com>
 
         * gdb.base/commands.exp (user_defined_command_test): Make "show user"
index 3d6bf5b9252b1763be74afb59bc3e53859b4701b..e25c03c2ea6220d50460c130cf0e091f2edb1f53 100644 (file)
@@ -110,6 +110,9 @@ set timeout [expr "$timeout + 60"]
 verbose "Timeout is now $timeout seconds" 2
 eval "spawn $GDB -nw $GDBFLAGS -core=$objdir/$subdir/corefile"
 expect {
+    -re "Couldn't find .* registers in core file.*$gdb_prompt $" {
+        fail "args: -core=corefile (couldn't find regs)"
+    }
     -re "Core was generated by .*coremaker.*\r\n\#0  .*\(\).*\r\n$gdb_prompt $" {
        pass "args: -core=corefile"
     }
This page took 0.039473 seconds and 4 git commands to generate.