comparison tests/test-blackbox.t @ 43803:e6cda6efb12a

tests: expect return status 255 on exception for test-blackbox.t with chg Differential Revision: https://phab.mercurial-scm.org/D7554
author Kyle Lippincott <spectral@google.com>
date Thu, 05 Dec 2019 15:50:47 -0800
parents c6b4c348360e
children c26cb33e5219
comparison
equal deleted inserted replaced
43802:c6b4c348360e 43803:e6cda6efb12a
55 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> abortcmd exited 255 after * seconds (glob) 55 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> abortcmd exited 255 after * seconds (glob)
56 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox -l 2 56 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox -l 2
57 57
58 unhandled exception 58 unhandled exception
59 $ rm ./.hg/blackbox.log 59 $ rm ./.hg/blackbox.log
60 $ hg crash 2> /dev/null 60 #if chg
61 (chg exits 255 because it fails to receive an exit code)
62 $ hg crash 2>/dev/null
63 [255]
64 #else
65 (hg exits 1 because Python default exit code for uncaught exception is 1)
66 $ hg crash 2>/dev/null
61 [1] 67 [1]
68 #endif
62 $ hg blackbox -l 2 69 $ hg blackbox -l 2
63 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> crash exited 1 after * seconds (glob) 70 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> crash exited 1 after * seconds (glob)
64 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox -l 2 71 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox -l 2
65 72
66 alias expansion is logged 73 alias expansion is logged