test-mq-qnew: handle Mac OS X error strings. stable
authorDan Villiom Podlaski Christiansen <danchr@gmail.com>
Wed, 10 Nov 2010 13:48:23 +0100
branchstable
changeset 12960 e339346a9b05
parent 12959 27e4146d9241
child 12961 ad63e5f834e1
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.
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