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.
--- 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