# HG changeset patch # User Kyle Lippincott # Date 2019-12-05 23:50:47 # Node ID e6cda6efb12af6a6295a01b9b50e54203a422ed1 # Parent c6b4c348360e1678bc0a9a605ea112416387a958 tests: expect return status 255 on exception for test-blackbox.t with chg Differential Revision: https://phab.mercurial-scm.org/D7554 diff --git a/tests/test-blackbox.t b/tests/test-blackbox.t --- a/tests/test-blackbox.t +++ b/tests/test-blackbox.t @@ -57,8 +57,15 @@ abort exit code 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