diff tests/test-template-map.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 7e5be4a7cda7
line wrap: on
line diff
--- a/tests/test-template-map.t	Tue Mar 07 03:42:40 2023 +0100
+++ b/tests/test-template-map.t	Fri Mar 10 18:20:19 2023 +0000
@@ -1260,7 +1260,7 @@
   $ touch q
   $ chmod 0 q
   $ hg log --style ./q
-  abort: Permission denied: './q'
+  abort: $EACCES$: './q'
   [255]
 #endif
 
@@ -1309,7 +1309,7 @@
   $ echo 'changeset = q' >> t
 #if unix-permissions no-root
   $ hg log --style ./t
-  abort: template file ./q: Permission denied
+  abort: template file ./q: $EACCES$
   [255]
   $ rm -f q
 #endif