diff tests/test-chg.t @ 45528:5eee6f4f3d0d

chg: fallback to original hg if stdio fds are missing If stdio fds are missing (ex. fd 0 is not present), chg might open fds that take the numbers 0, and attachio would send the wrong fds to the client, which might cause unwanted behaviors. Avoid that by detecting the missing fds and falling back to the original hg. Differential Revision: https://phab.mercurial-scm.org/D9058
author Jun Wu <quark@fb.com>
date Fri, 18 Sep 2020 16:26:37 -0700
parents 837840018306
children c6da62004c0f
line wrap: on
line diff
--- a/tests/test-chg.t	Fri Sep 18 08:27:43 2020 -0700
+++ b/tests/test-chg.t	Fri Sep 18 16:26:37 2020 -0700
@@ -197,6 +197,14 @@
 
   $ cd ..
 
+missing stdio
+-------------
+
+  $ CHGDEBUG=1 chg version -q 0<&-
+  chg: debug: * stdio fds are missing (glob)
+  chg: debug: * execute original hg (glob)
+  Mercurial Distributed SCM * (glob)
+
 server lifecycle
 ----------------