Re: MI testsuite to use PTY for inferior

Mark Kettenis
2005-08-13T21:52:10Z

[-- Attachment #1: Type: text/plain, Size: 468 bytes --]

Hmm, I consistently see

FAIL: gdb.mi/mi-console.exp: Testing console output
FAIL: gdb.mi/mi-console.exp: Finished step over hello (timeout)

FAIL: gdb.mi/mi-syn-frame.exp: testing exec continue
FAIL: gdb.mi/mi-syn-frame.exp: list stack frames

if I run the complete testsuite, since this was checked in.

Funny thing is that if I run mi-console.exp alone, it usually
(although not always) succeeds.

Attached are a gdb.log for a failing run and a passing run.

Mark

[-- Attachment #2: gdb.log.fail --]
[-- Type: application/octet-stream, Size: 4766 bytes --]

Test Run By kettenis on Sat Aug 13 23:49:26 2005
Native configuration is i386-unknown-openbsd3.7

=== gdb tests ===

Schedule of variations:
unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../../src/gdb/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running ../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.exp ...
~"GNU gdb 6.3.50.20050813-cvs\n"
~"Copyright 2004 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and you are\n"
~"welcome to change it and/or distribute copies of it under certain conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
~"This GDB was configured as \"i386-unknown-openbsd3.7\"."
~"\n"
(gdb)
100-gdb-set height 0
100^done
(gdb)
101-gdb-set width 0
101^done
(gdb)
102-inferior-tty-set /dev/ttyp9
102^done
(gdb)
Executing on host: gcc ../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.c -DFAKEARGV -g -lm -o /home/kettenis/obj/gdb/gdb/testsuite/gdb.mi/mi-console (timeout = 300)
102-break-delete
102^done
(gdb)
103-break-list
103^done,BreakpointTable={nr_rows="0",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[]}
(gdb)
104-environment-directory -r
104^done,source-path="$cdir:$cwd"
(gdb)
105-environment-directory ../../../../src/gdb/gdb/testsuite/gdb.mi
105^done,source-path="/home/kettenis/obj/gdb/gdb/testsuite/../../../../src/gdb/gdb/testsuite/gdb.mi:$cdir:$cwd"
(gdb)
105-file-exec-and-symbols /home/kettenis/obj/gdb/gdb/testsuite/gdb.mi/mi-console
105^done
(gdb)
102-break-delete
102^done
(gdb)
103-break-list
103^done,BreakpointTable={nr_rows="0",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[]}
(gdb)
104-environment-directory -r
104^done,source-path="$cdir:$cwd"
(gdb)
105-environment-directory ../../../../src/gdb/gdb/testsuite/gdb.mi
105^done,source-path="/home/kettenis/obj/gdb/gdb/testsuite/../../../../src/gdb/gdb/testsuite/gdb.mi:$cdir:$cwd"
(gdb)
105-file-exec-and-symbols /home/kettenis/obj/gdb/gdb/testsuite/gdb.mi/mi-console
105^done
(gdb)
200-break-insert main
200^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x1c000638",func="main",file="../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.c",line="13",times="0"}
(gdb)
PASS: gdb.mi/mi-console.exp: breakpoint at main
000-exec-run
000^running
(gdb)
000*stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x1c000638",func="main",args=[],file="../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.c",fullname="/home/kettenis/src/gdb/gdb/testsuite/gdb.mi/mi-console.c",line="13"}
(gdb)
PASS: gdb.mi/mi-console.exp: mi runto main
47-exec-next
47^running
(gdb)
47*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x1c00063d",func="main",args=[],file="../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.c",fullname="/home/kettenis/src/gdb/gdb/testsuite/gdb.mi/mi-console.c",line="14"}
(gdb)
FAIL: gdb.mi/mi-console.exp: Testing console output
FAIL: gdb.mi/mi-console.exp: Finished step over hello (timeout)
testcase ../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.exp completed in 61 seconds

=== gdb Summary ===

# of expected passes 2
# of unexpected failures 2
Executing on host: /home/kettenis/obj/gdb/gdb/testsuite/../../gdb/gdb -nw --command gdb_cmd (timeout = 300)
GNU gdb 6.3.50.20050813-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd3.7".
/home/kettenis/obj/gdb/gdb/testsuite/../../gdb/gdb version 6.3.50.20050813-cvs -nx

runtest completed at Sat Aug 13 23:50:27 2005

[-- Attachment #3: gdb.log.pass --]
[-- Type: application/octet-stream, Size: 4806 bytes --]

Test Run By kettenis on Sat Aug 13 23:50:37 2005
Native configuration is i386-unknown-openbsd3.7

=== gdb tests ===

Schedule of variations:
unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../../src/gdb/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running ../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.exp ...
~"GNU gdb 6.3.50.20050813-cvs\n"
~"Copyright 2004 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and you are\n"
~"welcome to change it and/or distribute copies of it under certain conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
~"This GDB was configured as \"i386-unknown-openbsd3.7\"."
~"\n"
(gdb)
100-gdb-set height 0
100^done
(gdb)
101-gdb-set width 0
101^done
(gdb)
102-inferior-tty-set /dev/ttyp9
102^done
(gdb)
Executing on host: gcc ../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.c -DFAKEARGV -g -lm -o /home/kettenis/obj/gdb/gdb/testsuite/gdb.mi/mi-console (timeout = 300)
102-break-delete
102^done
(gdb)
103-break-list
103^done,BreakpointTable={nr_rows="0",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[]}
(gdb)
104-environment-directory -r
104^done,source-path="$cdir:$cwd"
(gdb)
105-environment-directory ../../../../src/gdb/gdb/testsuite/gdb.mi
105^done,source-path="/home/kettenis/obj/gdb/gdb/testsuite/../../../../src/gdb/gdb/testsuite/gdb.mi:$cdir:$cwd"
(gdb)
105-file-exec-and-symbols /home/kettenis/obj/gdb/gdb/testsuite/gdb.mi/mi-console
105^done
(gdb)
102-break-delete
102^done
(gdb)
103-break-list
103^done,BreakpointTable={nr_rows="0",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[]}
(gdb)
104-environment-directory -r
104^done,source-path="$cdir:$cwd"
(gdb)
105-environment-directory ../../../../src/gdb/gdb/testsuite/gdb.mi
105^done,source-path="/home/kettenis/obj/gdb/gdb/testsuite/../../../../src/gdb/gdb/testsuite/gdb.mi:$cdir:$cwd"
(gdb)
105-file-exec-and-symbols /home/kettenis/obj/gdb/gdb/testsuite/gdb.mi/mi-console
105^done
(gdb)
200-break-insert main
200^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x1c000638",func="main",file="../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.c",line="13",times="0"}
(gdb)
PASS: gdb.mi/mi-console.exp: breakpoint at main
000-exec-run
000^running
(gdb)
000*stopped,reason="breakpoint-hit",bkptno="1",thread-id="0",frame={addr="0x1c000638",func="main",args=[],file="../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.c",fullname="/home/kettenis/src/gdb/gdb/testsuite/gdb.mi/mi-console.c",line="13"}
(gdb)
PASS: gdb.mi/mi-console.exp: mi runto main
47-exec-next
47^running
(gdb)
PASS: gdb.mi/mi-console.exp: Testing console output
Hello \"!\rPASS: gdb.mi/mi-console.exp: inferior_output:Testing console output
47*stopped,reason="end-stepping-range",thread-id="0",frame={addr="0x1c00063d",func="main",args=[],file="../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.c",fullname="/home/kettenis/src/gdb/gdb/testsuite/gdb.mi/mi-console.c",line="14"}
(gdb)
PASS: gdb.mi/mi-console.exp: Finished step over hello
testcase ../../../../src/gdb/gdb/testsuite/gdb.mi/mi-console.exp completed in 0 seconds

=== gdb Summary ===

# of expected passes 5
Executing on host: /home/kettenis/obj/gdb/gdb/testsuite/../../gdb/gdb -nw --command gdb_cmd (timeout = 300)
GNU gdb 6.3.50.20050813-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd3.7".
/home/kettenis/obj/gdb/gdb/testsuite/../../gdb/gdb version 6.3.50.20050813-cvs -nx

runtest completed at Sat Aug 13 23:50:37 2005