[PATCH 4 of 4 V2] test-commit-interactive-curses: #require 'tic'

Matt Harbison mharbison72 at gmail.com
Tue Mar 17 21:24:47 CDT 2015


# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1426645269 14400
#      Tue Mar 17 22:21:09 2015 -0400
# Node ID 2485f2538e2195b28530afab507c693c56509cef
# Parent  2ff741cad10c73e21d39e06b8a13fa307256c13b
test-commit-interactive-curses: #require 'tic'

When run on Windows, this test aborts:

@@ -20,7 +20,8 @@
   > X
   > EOF
   $ hg commit -i  -m "a" -d "0 0"
-  no changes to record
+  abort: No module named fcntl!
+  [255]
   $ hg tip
   changeset:   -1:000000000000
   tag:         tip

Maybe there's another way to get the screen size on Windows (it dies in
crecord.gethw()), but for now, quiet the test noise by skipping it if terminal
info compiler is unavailable.

diff --git a/tests/test-commit-interactive-curses.t b/tests/test-commit-interactive-curses.t
--- a/tests/test-commit-interactive-curses.t
+++ b/tests/test-commit-interactive-curses.t
@@ -1,3 +1,4 @@
+#require tic
 Set up a repo
 
   $ cat <<EOF >> $HGRCPATH


More information about the Mercurial-devel mailing list