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 33
33
import java .util .Map ;
34
34
import javax .servlet .http .HttpServletRequest ;
35
35
import org .junit .AfterClass ;
36
+ import org .junit .Assume ;
36
37
import org .junit .BeforeClass ;
37
38
import org .junit .Rule ;
38
39
import org .junit .Test ;
@@ -485,7 +486,8 @@ public void testCheckSourceRootExistence4() throws IOException {
485
486
File temp = File .createTempFile ("opengrok" , "-test-file.tmp" );
486
487
Files .delete (temp .toPath ());
487
488
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 ));
489
491
RuntimeEnvironment .getInstance ().setSourceRoot (temp .getAbsolutePath ());
490
492
try {
491
493
cfg .checkSourceRootExistence ();
You can’t perform that action at this time.
0 commit comments