Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
50291:862969b6c359 | 50292:adecb1ab4a0d |
---|---|
320 Skip rotation if the .hg is read-only | 320 Skip rotation if the .hg is read-only |
321 | 321 |
322 #if unix-permissions | 322 #if unix-permissions |
323 $ chmod -w .hg | 323 $ chmod -w .hg |
324 $ hg log -r. -T '{rev}\n' --config blackbox.maxsize=1 --debug | 324 $ hg log -r. -T '{rev}\n' --config blackbox.maxsize=1 --debug |
325 warning: cannot rename '$TESTTMP/blackboxtest3/.hg/blackbox.log.1' to '$TESTTMP/blackboxtest3/.hg/blackbox.log': Permission denied | 325 warning: cannot rename '$TESTTMP/blackboxtest3/.hg/blackbox.log.1' to '$TESTTMP/blackboxtest3/.hg/blackbox.log': $EACCES$ |
326 warning: cannot write to blackbox.log: Permission denied | 326 warning: cannot write to blackbox.log: $EACCES$ |
327 1 | 327 1 |
328 $ chmod +w .hg | 328 $ chmod +w .hg |
329 #endif | 329 #endif |
330 | 330 |
331 Test log recursion from dirty status check | 331 Test log recursion from dirty status check |