tests: don't hardcode errno==2 for ENOENT stable
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 04 Dec 2012 14:35:02 +0100
branchstable
changeset 18028 5dbefa846903
parent 18025 b4c9164b031d
child 18029 109a6a9dcca8
tests: don't hardcode errno==2 for ENOENT Hurd seems to set ENOENT to 2 + 2**30, unlike everyone else.
tests/test-acl.t
tests/test-qrecord.t
--- 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