mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 09:53:18 +00:00
8367552: JCmdTestFileSafety.java fails when run by root user
Reviewed-by: dcubed, ayang, phubner
This commit is contained in:
parent
3ba2e748d6
commit
eb26865c36
@ -141,6 +141,9 @@ public class JCmdTestFileSafety extends JCmdTestDumpBase {
|
||||
// to create archive successfully which is not expected.
|
||||
throw new jtreg.SkippedException("Test skipped on Windows");
|
||||
}
|
||||
if (Platform.isRoot()) {
|
||||
throw new jtreg.SkippedException("Test skipped when executed by root user.");
|
||||
}
|
||||
runTest(JCmdTestFileSafety::test);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user