# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1289393303 -3600 # Node ID e339346a9b05c474a6d461462351e1a2a5602786 # Parent 27e4146d92413e3514a24705663dbbdb412d46de test-mq-qnew: handle Mac OS X error strings. On Mac OS X, opening a file called '42/' results in ENOENT and not EISDIR if the directory doesn't exist. diff -r 27e4146d9241 -r e339346a9b05 tests/test-mq-qnew.t --- a/tests/test-mq-qnew.t Wed Nov 10 04:53:11 2010 -0600 +++ b/tests/test-mq-qnew.t Wed Nov 10 13:48:23 2010 +0100 @@ -107,7 +107,7 @@ abort: "foo#bar" cannot be used as the name of a patch abort: "foo:bar" cannot be used as the name of a patch % qnew with name containing slash - abort: cannot write patch "foo/": Is a directory + abort: cannot write patch "foo/": (Is a|No such file or) directory (re) abort: "foo" already exists as a directory foo/bar.patch popping foo/bar.patch @@ -172,7 +172,7 @@ abort: "foo#bar" cannot be used as the name of a patch abort: "foo:bar" cannot be used as the name of a patch % qnew with name containing slash - abort: cannot write patch "foo/": Is a directory + abort: cannot write patch "foo/": (Is a|No such file or) directory (re) abort: "foo" already exists as a directory foo/bar.patch popping foo/bar.patch