diff tests/common-pattern.py @ 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 45268599f55e
children c5e93c915ab6
line wrap: on
line diff
--- a/tests/common-pattern.py	Tue Mar 07 03:42:40 2023 +0100
+++ b/tests/common-pattern.py	Fri Mar 10 18:20:19 2023 +0000
@@ -136,6 +136,11 @@
         # FormatMessage(ERROR_FILE_NOT_FOUND)
         br'The system cannot find the file specified',
     ),
+    br'$EACCES$': (
+        br'Permission denied \(os error 13\)',
+        # strerror
+        br'Permission denied',
+    ),
     br'$ENOTDIR$': (
         # strerror()
         br'Not a directory',