Skip to content
Snippets Groups Projects
Commit b33d4cf3 authored by Matt Harbison's avatar Matt Harbison
Browse files

tests: add a substitution for ENOTDIR/ERROR_PATH_NOT_FOUND messages

parent feecfefe
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,13 @@
# FormatMessage(ERROR_FILE_NOT_FOUND)
br'The system cannot find the file specified',
),
br'$ENOTDIR$': (
# strerror()
br'Not a directory',
# FormatMessage(ERROR_PATH_NOT_FOUND)
br'The system cannot find the path specified',
),
}
for replace, msgs in _errors.items():
......
......@@ -129,8 +129,7 @@
b/c: replacing untracked file
getting b/c
creating directory: $TESTTMP/repo/.hg/badorigbackups/b (glob)
abort: The system cannot find the path specified: '$TESTTMP/repo/.hg/badorigbackups/b' (glob) (windows !)
abort: Not a directory: '$TESTTMP/repo/.hg/badorigbackups/b' (no-windows !)
abort: $ENOTDIR$: '$TESTTMP/repo/.hg/badorigbackups/b' (glob)
[255]
$ cat .hg/badorigbackups
data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment