File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
opengrok-indexer/src/test/java/org/opengrok/indexer/web Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 3333import java .util .Map ;
3434import javax .servlet .http .HttpServletRequest ;
3535import org .junit .AfterClass ;
36+ import org .junit .Assume ;
3637import org .junit .BeforeClass ;
3738import org .junit .Rule ;
3839import org .junit .Test ;
@@ -485,7 +486,8 @@ public void testCheckSourceRootExistence4() throws IOException {
485486 File temp = File .createTempFile ("opengrok" , "-test-file.tmp" );
486487 Files .delete (temp .toPath ());
487488 Files .createDirectories (temp .toPath ());
488- temp .setReadable (false );
489+ // skip the test if the implementation does not permit setting permissions
490+ Assume .assumeTrue (temp .setReadable (false ));
489491 RuntimeEnvironment .getInstance ().setSourceRoot (temp .getAbsolutePath ());
490492 try {
491493 cfg .checkSourceRootExistence ();
You can’t perform that action at this time.
0 commit comments