comparison tests/test-clone.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 2f2682f40ea0
children 7e5be4a7cda7
comparison
equal deleted inserted replaced
50291:862969b6c359 50292:adecb1ab4a0d
631 Inaccessible source 631 Inaccessible source
632 632
633 $ mkdir a 633 $ mkdir a
634 $ chmod 000 a 634 $ chmod 000 a
635 $ hg clone a b 635 $ hg clone a b
636 abort: Permission denied: *$TESTTMP/fail/a/.hg* (glob) 636 abort: $EACCES$: *$TESTTMP/fail/a/.hg* (glob)
637 [255] 637 [255]
638 638
639 Inaccessible destination 639 Inaccessible destination
640 640
641 $ hg init b 641 $ hg init b
642 $ cd b 642 $ cd b
643 $ hg clone . ../a 643 $ hg clone . ../a
644 abort: Permission denied: *../a* (glob) 644 abort: $EACCES$: *../a* (glob)
645 [255] 645 [255]
646 $ cd .. 646 $ cd ..
647 $ chmod 700 a 647 $ chmod 700 a
648 $ rm -r a b 648 $ rm -r a b
649 649