On Thu, Feb 21, 2019 at 11:37:51PM +0100, Ævar Arnfjörð Bjarmason wrote: > diff --git a/t/t5318-commit-graph.sh b/t/t5318-commit-graph.sh > index 0d012f55e5..1ee00fa333 100755 > --- a/t/t5318-commit-graph.sh > +++ b/t/t5318-commit-graph.sh > @@ -400,6 +400,18 @@ corrupt_graph_and_verify() { > > } > > +test_expect_success 'detect permission problem' ' > + corrupt_graph_setup && > + chmod 000 $objdir/info/commit-graph && This needs the POSIXPERM prereq. > + > + # Skip as root, or in other cases (odd fs or OS) where a > + # "chmod 000 file" does not yield EACCES on e.g. "cat file" > + if ! test -r $objdir/info/commit-graph And this condition would be unnecessary with the SANITY prereq. > + then > + corrupt_graph_verify "Could not open" > + fi > +' > + > test_expect_success 'detect too small' ' > corrupt_graph_setup && > echo "a small graph" >$objdir/info/commit-graph && > -- > 2.21.0.rc0.258.g878e2cd30e >