* mi0-until.exp, mi-until.exp, mi0-stepi.exp, mi-stepi.exp,
authorAndrew Cagney <cagney@redhat.com>
Sun, 19 Aug 2001 00:37:28 +0000 (00:37 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 19 Aug 2001 00:37:28 +0000 (00:37 +0000)
mi-simplerun.exp, mi0-simplerun.exp, mi0-return.exp,
mi-return.exp, mi0-console.exp, mi-console.exp: Recognize an
unexpected run-to-main response. Report as a fail.

gdb/testsuite/gdb.mi/ChangeLog
gdb/testsuite/gdb.mi/mi-console.exp
gdb/testsuite/gdb.mi/mi-return.exp
gdb/testsuite/gdb.mi/mi-simplerun.exp
gdb/testsuite/gdb.mi/mi-stepi.exp
gdb/testsuite/gdb.mi/mi-until.exp
gdb/testsuite/gdb.mi/mi0-console.exp
gdb/testsuite/gdb.mi/mi0-return.exp
gdb/testsuite/gdb.mi/mi0-simplerun.exp
gdb/testsuite/gdb.mi/mi0-stepi.exp
gdb/testsuite/gdb.mi/mi0-until.exp

index cbd4462..0efa070 100644 (file)
@@ -1,3 +1,10 @@
+2001-08-18  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi0-until.exp, mi-until.exp, mi0-stepi.exp, mi-stepi.exp,
+       mi-simplerun.exp, mi0-simplerun.exp, mi0-return.exp,
+       mi-return.exp, mi0-console.exp, mi-console.exp: Recognize an
+       unexpected run-to-main response. Report as a fail.
+
 2001-06-27  Andrew Cagney  <ac131313@redhat.com>
 
        * mi-disassemble.exp: Update to accept mi1 breakpoint tables.
index 11d9cb3..49269e5 100644 (file)
@@ -60,6 +60,9 @@ gdb_expect {
     -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*mi-console.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" {
            pass "run to main"
     }
+    -re ".*$mi_gdb_prompt$" {
+       fail "run to main (2)"
+    }
     timeout {
        fail "run to main (timeout)"
     }
index f1cb609..9777230 100644 (file)
@@ -60,6 +60,9 @@ proc test_running_to_callee4 {} {
        -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\\\[\\\],file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" {
            pass "run to callee4"
        }
+       -re ".*$mi_gdb_prompt$" {
+           fail "run to callee4 (2)"
+       }
        timeout {
            fail "run to callee4 (timeout)"
        }
index 20ee341..b1ff7c8 100644 (file)
@@ -107,6 +107,9 @@ proc test_running_the_program {} {
        -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
            pass "run to main"
        }
+       -re ".*$mi_gdb_prompt$" {
+           fail "run to main (2)"
+       }
        timeout {
            fail "run to main (timeout)"
        }
index 87c93af..b491fa5 100644 (file)
@@ -60,6 +60,9 @@ proc test_running_to_main {} {
        -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\\\[\\\],file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
            pass "run to main"
        }
+       -re ".*$mi_gdb_prompt$" {
+           fail "run to main (2)"
+       }
        timeout {
            fail "run to main (timeout)"
        }
index 57b92e2..8d74eb1 100644 (file)
@@ -60,6 +60,9 @@ proc test_running_to_foo {} {
        -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\\\[\\\],file=\".*until.c\",line=\"10\"\}\r\n$mi_gdb_prompt$" {
            pass "run to main"
        }
+       -re ".*$mi_gdb_prompt$" {
+           fail "run to main (2)"
+       }
        timeout {
            fail "run to main (timeout)"
        }
index 4735dc4..1a2f89f 100644 (file)
@@ -60,6 +60,9 @@ gdb_expect {
     -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*mi-console.c\",line=\"13\"\}\r\n$mi_gdb_prompt$" {
            pass "run to main"
     }
+    -re ".*$mi_gdb_prompt$" {
+       fail "run to main (2)"
+    }
     timeout {
        fail "run to main (timeout)"
     }
index 95e0252..c582be2 100644 (file)
@@ -60,6 +60,9 @@ proc test_running_to_callee4 {} {
        -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"callee4\",args=\{\},file=\".*basics.c\",line=\"8\"\}\r\n$mi_gdb_prompt$" {
            pass "run to callee4"
        }
+       -re ".*$mi_gdb_prompt$" {
+           fail "run to callee4 (2)"
+       }
        timeout {
            fail "run to callee4 (timeout)"
        }
index 683d6bb..15a1e3d 100644 (file)
@@ -107,6 +107,9 @@ proc test_running_the_program {} {
        -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
            pass "run to main"
        }
+       -re ".*$mi_gdb_prompt$" {
+           fail "run to main (2)"
+       }
        timeout {
            fail "run to main (timeout)"
        }
index 800cef8..d68108e 100644 (file)
@@ -60,6 +60,9 @@ proc test_running_to_main {} {
        -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"main\",args=\{\},file=\".*basics.c\",line=\"32\"\}\r\n$mi_gdb_prompt$" {
            pass "run to main"
        }
+       -re ".*$mi_gdb_prompt$" {
+           fail "run to main (2)"
+       }
        timeout {
            fail "run to main (timeout)"
        }
index e633002..e38e007 100644 (file)
@@ -60,6 +60,9 @@ proc test_running_to_foo {} {
        -re "000\\*stopped,reason=\"breakpoint-hit\",bkptno=\"1\",thread-id=\"0\",frame=\{addr=\"$hex\",func=\"foo\",args=\{\},file=\".*until.c\",line=\"10\"\}\r\n$mi_gdb_prompt$" {
            pass "run to main"
        }
+       -re ".*$mi_gdb_prompt$" {
+           fail "run to main (2)"
+       }
        timeout {
            fail "run to main (timeout)"
        }