Mercurial > hg
changeset 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 | 76d32a0edbc6 |
files | tests/test-blackbox.t |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-blackbox.t Thu Dec 05 14:18:39 2019 -0800 +++ b/tests/test-blackbox.t Thu Dec 05 15:50:47 2019 -0800 @@ -57,8 +57,15 @@ unhandled exception $ rm ./.hg/blackbox.log - $ hg crash 2> /dev/null +#if chg + (chg exits 255 because it fails to receive an exit code) + $ hg crash 2>/dev/null + [255] +#else + (hg exits 1 because Python default exit code for uncaught exception is 1) + $ hg crash 2>/dev/null [1] +#endif $ hg blackbox -l 2 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> crash exited 1 after * seconds (glob) 1970/01/01 00:00:00 bob @0000000000000000000000000000000000000000 (5000)> blackbox -l 2