From patchwork Tue Dec 4 13:43:08 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: tests: don't hardcode errno==2 for ENOENT From: Julien Cristau X-Patchwork-Id: 12 Message-Id: Date: Tue, 04 Dec 2012 14:43:08 +0100 # HG changeset patch # User Julien Cristau # Date 1354628102 -3600 # Branch stable # Node ID a7f07df1a57152a027fe0fe0629d26789c89e989 # Parent 5cafcac2414c7f0ebe9f1a29e994fa0d33491ad9 tests: don't hardcode errno==2 for ENOENT Hurd seems to set ENOENT to 2 + 2**30, unlike everyone else. diff --git a/tests/test-acl.t b/tests/test-acl.t --- a/tests/test-acl.t +++ b/tests/test-acl.t @@ -887,11 +887,11 @@ file specified by acl.config does not ex adding quux/file.py revisions files: 3/3 chunks (100.00%) 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) no rollback information available 0:6675d58eff77 diff --git a/tests/test-qrecord.t b/tests/test-qrecord.t --- a/tests/test-qrecord.t +++ b/tests/test-qrecord.t @@ -108,11 +108,11 @@ qrecord patch (mq not present) help (bad mq) $ 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 See "hg help qnew" & "hg help record" for more information and usage.