diff tests/test-blackbox.t @ 50292:adecb1ab4a0d stable

tests: add a rewriting step to detect EACCES errors
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Fri, 10 Mar 2023 18:20:19 +0000
parents 42d2b31cee0b
children 9fc0d244a753
line wrap: on
line diff
--- a/tests/test-blackbox.t	Tue Mar 07 03:42:40 2023 +0100
+++ b/tests/test-blackbox.t	Fri Mar 10 18:20:19 2023 +0000
@@ -322,8 +322,8 @@
 #if unix-permissions
   $ chmod -w .hg
   $ hg log -r. -T '{rev}\n' --config blackbox.maxsize=1 --debug
-  warning: cannot rename '$TESTTMP/blackboxtest3/.hg/blackbox.log.1' to '$TESTTMP/blackboxtest3/.hg/blackbox.log': Permission denied
-  warning: cannot write to blackbox.log: Permission denied
+  warning: cannot rename '$TESTTMP/blackboxtest3/.hg/blackbox.log.1' to '$TESTTMP/blackboxtest3/.hg/blackbox.log': $EACCES$
+  warning: cannot write to blackbox.log: $EACCES$
   1
   $ chmod +w .hg
 #endif