changeset 18028:5dbefa846903 stable

tests: don't hardcode errno==2 for ENOENT Hurd seems to set ENOENT to 2 + 2**30, unlike everyone else.
author Julien Cristau <julien.cristau@logilab.fr>
date Tue, 04 Dec 2012 14:35:02 +0100
parents b4c9164b031d
children 109a6a9dcca8
files tests/test-acl.t tests/test-qrecord.t
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-acl.t	Mon Dec 03 19:37:36 2012 -0200
+++ b/tests/test-acl.t	Tue Dec 04 14:35:02 2012 +0100
@@ -889,7 +889,7 @@
   added 3 changesets with 3 changes to 3 files
   calling hook pretxnchangegroup.acl: hgext.acl.hook
   acl: checking access for user "barney"
-  error: pretxnchangegroup.acl hook raised an exception: [Errno 2] *: '../acl.config' (glob)
+  error: pretxnchangegroup.acl hook raised an exception: [Errno *] *: '../acl.config' (glob)
   transaction abort!
   rollback completed
   abort: *: ../acl.config (glob)
--- a/tests/test-qrecord.t	Mon Dec 03 19:37:36 2012 -0200
+++ b/tests/test-qrecord.t	Tue Dec 04 14:35:02 2012 +0100
@@ -110,7 +110,7 @@
 
   $ echo "mq=nonexistent" >> $HGRCPATH
   $ hg help qrecord
-  *** failed to import extension mq from nonexistent: [Errno 2] * (glob)
+  *** failed to import extension mq from nonexistent: [Errno *] * (glob)
   hg qrecord [OPTION]... PATCH [FILE]...
   
   interactively record a new patch