From: Song,Ruogang <ruo...@pa...> - 2016-03-12 09:53:08
|
--- /tmp/sig.check 2016-03-12 17:16:57.000000000 +0800 +++ /cpic/sxxsjs/cs1/bashdb-3.1-0.09/test/sig.right 2007-10-14 15:27:46.000000000 +0800 @@ -21,6 +21,7 @@ +handle TERM bogus Need to give a command: stop, nostop, stack, nostack, print, noprint +eval kill -TERM $$ +Program received signal SIGTERM (15)... +### Should not have printed a stack trace above... +handle TERM noprint +handle TERM stack @@ -37,11 +38,20 @@ SIGTERM stop noprint showstack trap -- '_Dbg_sig_handler 15 "$BASH_COMMAND" "$@"' SIGTERM +continue Program received signal SIGTERM (15)... -->0 in file `sig.sh' at line 17 -##1 source("sig.sh") called from file `bashdb' at line 277 -->2 main() called from file `bashdb' at line 0 +->0 in file `dbg-cmds.inc' at line 2 +##1 _Dbg_do_eval("kill", "-TERM", "$$") called from file `dbg-cmds.inc' at line 343 +->2 _Dbg_onecmd("eval", "kill -TERM $$") called from file `dbg-cmds.inc' at line 157 +##3 _Dbg_cmdloop() called from file `dbg-sig.inc' at line 220 +##4 _Dbg_debug_trap_handler("0", "[[ "$1"x != x ]]") called from file `sig.sh' at line 7 +##5 source("sig.sh") called from file `bashdb' at line 277 +##6 main() called from file `bashdb' at line 0 +### Should have printed a stack trace above... +continue ++where +->0 in file `sig.sh' at line 741 +##1 source("sig.sh") called from file `bashdb' at line 277 +##2 main() called from file `bashdb' at line 0 ++continue Program received signal SIGINT (2)... ->0 in file `sig.sh' at line 23 ##1 source("sig.sh") called from file `bashdb' at line 277 @@ -51,9 +61,5 @@ ##1 source("sig.sh") called from file `bashdb' at line 277 ->2 main() called from file `bashdb' at line 0 Debugged program terminated normally. Use q to quit or R to restart. -+where -No stack. -+continue -The program is not being run. +kill sig.tests: line 11: xxxx Killed $BASH ${TOP_BUILDDIR}bashdb -B -q -L .. -x $cmdfile $debugged_script --- /tmp/sig.check2 2016-03-12 17:16:57.000000000 +0800 +++ /tmp/sig.right 2016-03-12 17:16:57.000000000 +0800 @@ -21,6 +21,7 @@ +handle TERM bogus Need to give a command: stop, nostop, stack, nostack, print, noprint +eval kill -TERM $$ +Program received signal SIGTERM (15)... +### Should not have printed a stack trace above... +handle TERM noprint +handle TERM stack @@ -37,11 +38,20 @@ SIGTERM stop noprint showstack trap -- '_Dbg_sig_handler 15 "$BASH_COMMAND" "$@"' SIGTERM +continue Program received signal SIGTERM (15)... -->0 in file `sig.sh' at line 17 -##1 source("sig.sh") called from file `bashdb' at line 277 -->2 main() called from file `bashdb' at line 0 +->0 in file `dbg-cmds.inc' at line 2 +##1 _Dbg_do_eval("kill", "-TERM", "$$") called from file `dbg-cmds.inc' at line 343 +->2 _Dbg_onecmd("eval", "kill -TERM $$") called from file `dbg-cmds.inc' at line 157 +##3 _Dbg_cmdloop() called from file `dbg-sig.inc' at line 220 +##4 _Dbg_debug_trap_handler("0", "[[ "$1"x != x ]]") called from file `sig.sh' at line 7 +##5 source("sig.sh") called from file `bashdb' at line 277 +##6 main() called from file `bashdb' at line 0 +### Should have printed a stack trace above... +continue ++where +->0 in file `sig.sh' at line 741 +##1 source("sig.sh") called from file `bashdb' at line 277 +##2 main() called from file `bashdb' at line 0 ++continue Program received signal SIGINT (2)... ->0 in file `sig.sh' at line 23 ##1 source("sig.sh") called from file `bashdb' at line 277 @@ -51,9 +61,5 @@ ##1 source("sig.sh") called from file `bashdb' at line 277 ->2 main() called from file `bashdb' at line 0 Debugged program terminated normally. Use q to quit or R to restart. -+where -No stack. -+continue -The program is not being run. +kill sig.tests: line 11: xxxx Killed $BASH ${TOP_BUILDDIR}bashdb -B -q -L .. -x $cmdfile $debugged_script FAIL: run-sig PASS: run-skip checking subshell1... checking subshell2... checking subshell3... PASS: run-subshell PASS: run-tbreak checking trace... checking trace2... PASS: run-trace PASS: run-watch1 PASS: run-watch2 =================================================== 1 of 25 tests failed Please report to bas...@li... =================================================== make[2]: *** [check-TESTS] Error 1 make[2]: Leaving directory `/cpic/sxxsjs/cs1/bashdb-3.1-0.09/test' make[1]: *** [check-am] Error 2 make[1]: Leaving directory `/cpic/sxxsjs/cs1/bashdb-3.1-0.09/test' make: *** [check-recursive] Error 1 Best Regards, [logo+纳斯达克邮件.png] 宋若刚 Professional Talent Acquisition Mobile: +86.136.8219.7690 Email: ruo...@pa...<mailto:Jac...@pa...> |