Patchwork D7554: tests: expect return status 255 on exception for test-blackbox.t with chg

login
register
mail settings
Submitter phabricator
Date Dec. 6, 2019, 3:38 p.m.
Message ID <288b6865cf9c14ca25dbc0e80e4cbe86@localhost.localdomain>
Download mbox | patch
Permalink /patch/43601/
State Not Applicable
Headers show

Comments

phabricator - Dec. 6, 2019, 3:38 p.m.
Closed by commit rHGe6cda6efb12a: tests: expect return status 255 on exception for test-blackbox.t with chg (authored by spectral).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7554?vs=18479&id=18493

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7554/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7554

AFFECTED FILES
  tests/test-blackbox.t

CHANGE DETAILS




To: spectral, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

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 @@ 
 
 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