Skip to content
Snippets Groups Projects
Commit 7cf8de5a82d8 authored by Javi Merino's avatar Javi Merino
Browse files

tests: ignore the return code of chmod in test-inherit-mode

In freebsd, a newly created directory has the same group as the parent
directory by default.  That means that the test directory created by
test-inherit-mode.t is owned by root's group, so "chmod g+s .hg/store"
fails to set the SGID bit and returns 1.  If we ignore chmod's return
code, the testsuite passes again.
parent 939f043ab5ed
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@
$ hg init setgid
$ cd setgid
$ chmod g+rwx .hg/store
$ chmod g+s .hg/store 2> /dev/null
$ chmod g+s .hg/store 2> /dev/null || true
$ mkdir dir
$ touch dir/file
$ hg ci -qAm 'add dir/file'
......
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