From: Tom de Vries Date: Thu, 1 Aug 2019 08:48:11 +0000 (+0200) Subject: [gdb/testsuite] Fix gdb.base/signals.exp timeout with check-read1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed5913402bd4d50e342d4350ee5e4662d98a3947;p=binutils-gdb.git [gdb/testsuite] Fix gdb.base/signals.exp timeout with check-read1 With gdb.base/signals.exp and check-read1 we get: ... FAIL: gdb.base/signals.exp: info signals (timeout) ... Fix this by using gdb_test_sequence. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2019-08-01 Tom de Vries PR testsuite/24863 * gdb.base/signals.exp: Fix check-read1 timeout using gdb_test_sequence. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index d88157cb0da..6844c45e550 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-08-01 Tom de Vries + + PR testsuite/24863 + * gdb.base/signals.exp: Fix check-read1 timeout using gdb_test_sequence. + 2019-07-30 Tom Tromey * gdb.ada/display_nested.exp: New file. diff --git a/gdb/testsuite/gdb.base/signals.exp b/gdb/testsuite/gdb.base/signals.exp index 1fe6067705f..08f894c9149 100644 --- a/gdb/testsuite/gdb.base/signals.exp +++ b/gdb/testsuite/gdb.base/signals.exp @@ -138,8 +138,21 @@ The program being debugged stopped while in a function called from GDB.*" \ # Verify that "info signals" produces reasonable output. - gdb_test "info signals" "SIGHUP.*SIGINT.*SIGQUIT.*SIGILL.*SIGTRAP.*SIGABRT.*SIGEMT.*SIGFPE.*SIGKILL.*SIGBUS.*SIGSEGV.*SIGSYS.*SIGPIPE.*SIGALRM.*SIGTERM.*SIGURG.*SIGSTOP.*SIGTSTP.*SIGCONT.*SIGCHLD.*SIGTTIN.*SIGTTOU.*SIGIO.*SIGXCPU.*SIGXFSZ.*SIGVTALRM.*SIGPROF.*SIGWINCH.*SIGLOST.*SIGUSR1.*SIGUSR2.*SIGPWR.*SIGPOLL.*SIGWIND.*SIGPHONE.*SIGWAITING.*SIGLWP.*SIGDANGER.*SIGGRANT.*SIGRETRACT.*SIGMSG.*SIGSOUND.*SIGSAK.*SIGPRIO.*SIG33.*SIG34.*SIG35.*SIG36.*SIG37.*SIG38.*SIG39.*SIG40.*SIG41.*SIG42.*SIG43.*SIG44.*SIG45.*SIG46.*SIG47.*SIG48.*SIG49.*SIG50.*SIG51.*SIG52.*SIG53.*SIG54.*SIG55.*SIG56.*SIG57.*SIG58.*SIG59.*SIG60.*SIG61.*SIG62.*SIG63.*Use the \"handle\" command to change these tables.*" \ - "info signals" + gdb_test_sequence "info signals" "" \ + [list "SIGHUP" "SIGINT" "SIGQUIT" "SIGILL" "SIGTRAP" "SIGABRT" \ + "SIGEMT" "SIGFPE" "SIGKILL" "SIGBUS" "SIGSEGV" "SIGSYS" \ + "SIGPIPE" "SIGALRM" "SIGTERM" "SIGURG" "SIGSTOP" \ + "SIGTSTP" "SIGCONT" "SIGCHLD" "SIGTTIN" "SIGTTOU" "SIGIO" \ + "SIGXCPU" "SIGXFSZ" "SIGVTALRM" "SIGPROF" "SIGWINCH" \ + "SIGLOST" "SIGUSR1" "SIGUSR2" "SIGPWR" "SIGPOLL" \ + "SIGWIND" "SIGPHONE" "SIGWAITING" "SIGLWP" "SIGDANGER" \ + "SIGGRANT" "SIGRETRACT" "SIGMSG" "SIGSOUND" "SIGSAK" \ + "SIGPRIO" "SIG33" "SIG34" "SIG35" "SIG36" "SIG37" "SIG38" \ + "SIG39" "SIG40" "SIG41" "SIG42" "SIG43" "SIG44" "SIG45" \ + "SIG46" "SIG47" "SIG48" "SIG49" "SIG50" "SIG51" "SIG52" \ + "SIG53" "SIG54" "SIG55" "SIG56" "SIG57" "SIG58" "SIG59" \ + "SIG60" "SIG61" "SIG62" "SIG63" \ + "Use the \"handle\" command to change these tables"] # Verify that "info signal" correctly handles an argument, be it a # symbolic signal name, or an integer ID.