diff --git a/tests/common-pattern.py b/tests/common-pattern.py index feecfefeba258b288a26e181733f63a7c44ed644_dGVzdHMvY29tbW9uLXBhdHRlcm4ucHk=..b33d4cf38666a489210a666791bb683e8ccb5c8b_dGVzdHMvY29tbW9uLXBhdHRlcm4ucHk= 100644 --- a/tests/common-pattern.py +++ b/tests/common-pattern.py @@ -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(): diff --git a/tests/test-origbackup-conflict.t b/tests/test-origbackup-conflict.t index feecfefeba258b288a26e181733f63a7c44ed644_dGVzdHMvdGVzdC1vcmlnYmFja3VwLWNvbmZsaWN0LnQ=..b33d4cf38666a489210a666791bb683e8ccb5c8b_dGVzdHMvdGVzdC1vcmlnYmFja3VwLWNvbmZsaWN0LnQ= 100644 --- a/tests/test-origbackup-conflict.t +++ b/tests/test-origbackup-conflict.t @@ -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