tests/hghave
changeset 8060 84d0fe34427b
parent 8059 41a2c5cbcb6a
child 8127 17ab4dab50a6
--- a/tests/hghave	Wed Apr 08 02:34:00 2009 +0900
+++ b/tests/hghave	Wed Apr 08 02:38:23 2009 +0900
@@ -238,9 +238,15 @@
             continue
 
         check, desc = checks[feature]
-        if not negate and not check():
+        try:
+            available = check()
+        except Exception, e:
+            error('hghave check failed: ' + feature)
+            continue
+
+        if not negate and not available:
             error('skipped: missing feature: ' + desc)
-        elif negate and check():
+        elif negate and available:
             error('skipped: system supports %s' % desc)
 
     if failures != 0: