comparison tests/test-blackbox.t @ 38022:48853a927757

dispatch: fix exit code of unhandled exception recorded in blackbox log Spotted by Martin von Zweigbergk. We might want to change the exit code to -1 (i.e. 255) because 1 means non-abort error in hg, but that's another issue.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 16 May 2018 20:17:50 +0900
parents 81ca0fd348e3
children c3fd9a0f8277
comparison
equal deleted inserted replaced
38021:538e850ae737 38022:48853a927757
47 unhandled exception 47 unhandled exception
48 $ rm ./.hg/blackbox.log 48 $ rm ./.hg/blackbox.log
49 $ hg crash 2> /dev/null 49 $ hg crash 2> /dev/null
50 [1] 50 [1]
51 $ hg blackbox -l 2 51 $ hg blackbox -l 2
52 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> crash exited -1 after * seconds (glob) 52 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> crash exited 1 after * seconds (glob)
53 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox -l 2 53 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox -l 2
54 54
55 alias expansion is logged 55 alias expansion is logged
56 $ rm ./.hg/blackbox.log 56 $ rm ./.hg/blackbox.log
57 $ hg confuse 57 $ hg confuse