From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9973 invoked by alias); 22 May 2008 14:34:52 -0000 Received: (qmail 9964 invoked by uid 22791); 22 May 2008 14:34:51 -0000 X-Spam-Check-By: sourceware.org Received: from host0.dyn.jankratochvil.net (HELO host0.dyn.jankratochvil.net) (89.250.240.59) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 22 May 2008 14:34:34 +0000 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.2/8.14.2) with ESMTP id m4MEYMEE006952; Thu, 22 May 2008 16:34:22 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.2/8.14.2/Submit) id m4MEYLNk006946; Thu, 22 May 2008 16:34:21 +0200 Date: Thu, 22 May 2008 18:16:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Cc: Pedro Alves Subject: [ob] Testsuite longjmp.exp race Message-ID: <20080522143420.GA5788@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-11-01) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-05/txt/msg00659.txt.bz2 --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 654 Hi, with slow GDB the testcase will ERROR-out. (GDB_TEST does not need $gdb_prompt but GDB_TEST_MULTIPLE does) Regards, Jan delete breakpoints (gdb) delete breakpoints Delete all breakpoints? (y or n) y -(gdb) info breakpoints -No breakpoints or watchpoints. -(gdb) break 76 +Please answer y or n. +Delete all breakpoints? (y or n) y +(gdb) y +Undefined command: "y". Try "help". +(gdb) ERROR: breakpoints not deleted +break 76 Breakpoint 6 at 0x400625: file ../.././gdb/testsuite/gdb.base/longjmp.c, line 76. -(gdb) PASS: gdb.base/longjmp.exp: breakpoint at pattern 3 start +(gdb) UNRESOLVED: gdb.base/longjmp.exp: breakpoint at pattern 3 start --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="gdb-longjmp-test-race.patch" Content-length: 1118 2008-05-22 Jan Kratochvil * gdb.base/longjmp.exp: Fix GDB_TEST_MULTIPLE missing GDB_PROMPT races. --- ./gdb/testsuite/gdb.base/longjmp.exp 4 May 2008 19:43:31 -0000 1.1 +++ ./gdb/testsuite/gdb.base/longjmp.exp 22 May 2008 14:22:36 -0000 @@ -75,12 +75,12 @@ gdb_test "next" "longjmp \\(env, 1\\);.* set msg "next over longjmp(1)" gdb_test_multiple "next" $msg { - -re ".*patt1.*" { + -re ".*patt1.*$gdb_prompt $" { pass $msg gdb_test "next" "resumes\\+\\+.*" "next into else block (1)" gdb_test "next" "miss_step_1.*" "next into safety net (1)" } - -re "miss_step_1.*" { + -re "miss_step_1.*$gdb_prompt $" { fail $msg } } @@ -105,13 +105,13 @@ gdb_test "next" "call_longjmp.*" "next o set msg "next over call_longjmp (2)" gdb_test_multiple "next" $msg { - -re ".*patt2.*" { + -re ".*patt2.*$gdb_prompt $" { pass $msg gdb_test "next" "resumes\\+\\+.*" "next into else block (2)" gdb_test "next" "miss_step_2.*" "next into safety net (2)" } - -re "miss_step_2.*" { + -re "miss_step_2.*$gdb_prompt $" { fail $msg } } --PNTmBPCT7hxwcZjr--