tests: increase test-https malform error glob
authorDurham Goode <durham@fb.com>
Tue, 14 Jun 2016 18:14:42 -0700
changeset 29356 93b83ef78d1e
parent 29355 85868ecf2c0d
child 29357 66d41c9e9222
tests: increase test-https malform error glob The recently introduced (ecc9b788fd690a0a) test around malformed pem files hard codes an error message which doesn't appear to be cross platform agnostic. On our machines (centos6 if it matters) the test output differs: - abort: error: unknown error* (glob) + abort: error: _ssl.c:330: error:00000000:lib(0):func(0):reason(0) This patch increases the glob to cover the entire error message.
tests/test-https.t
--- a/tests/test-https.t	Tue Jun 14 11:21:41 2016 +0200
+++ b/tests/test-https.t	Tue Jun 14 18:14:42 2016 -0700
@@ -63,7 +63,7 @@
 
   $ echo baddata > badca.pem
   $ hg --config hostsecurity.localhost:verifycertsfile=badca.pem clone https://localhost:$HGPORT/
-  abort: error: unknown error* (glob)
+  abort: error: * (glob)
   [255]
 
 A per-host certificate mismatching the server will fail verification