* gdb.base/ending-run.c (main): Set stdout buffersize
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 18 Sep 2001 17:49:06 +0000 (17:49 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 18 Sep 2001 17:49:06 +0000 (17:49 +0000)
        to the same reasonable value for any target.
        * gdb.base/ending-run.exp: Add a regular expression
        to make testsuite happy on Sanyo Stormy16 target.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/ending-run.c
gdb/testsuite/gdb.base/ending-run.exp

index bf5afd1..2344595 100644 (file)
@@ -1,3 +1,10 @@
+2001-09-18  Corinna Vinschen  <vinschen@redhat.com>
+
+       * gdb.base/ending-run.c (main): Set stdout buffersize
+       to the same reasonable value for any target.
+       * gdb.base/ending-run.exp: Add a regular expression
+       to make testsuite happy on Sanyo Stormy16 target.
+
 2001-09-17  Corinna Vinschen  <vinschen@redhat.com>
 
        * gdb.base/display.c (do_loops): Add float variable `f'.
index 0936146..ccf8c50 100644 (file)
@@ -22,7 +22,7 @@ int main()
     int i;
 
     p = (int *) malloc( 4 );
-    
+    setvbuf (stdout, alloca (64), _IOLBF, 64);
     for (i = 1; i < 10; i++)
         {
             printf( "%d ", callee( i ));
index 360edc8..c35caf6 100644 (file)
@@ -170,6 +170,10 @@ gdb_expect {
                # This is what happens on Solaris currently -sts 1999-08-25
                pass "step out of main on Solaris"
            }
+           -re ".*in _int_reset ().*$gdb_prompt $" {
+               # This is what happens on Sanyo Stormy16
+               pass "step out of main"
+           }
            -re ".*in ..change.mode ().*$gdb_prompt $" {
                # This is what happens on ARM in thumb mode -fn 2000-02-01
                pass "step out of main on ARM thumb"