mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8214916: SourceLauncherTest fails on exploded image
Reviewed-by: ksrini
This commit is contained in:
parent
cbe604cf5d
commit
93b7d283d8
2 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -213,6 +213,12 @@ public class SourceLauncherTest extends TestRunner {
|
|||
|
||||
@Test
|
||||
public void testPermissions(Path base) throws IOException {
|
||||
// does not work on exploded image, because the default policy file assumes jrt:; skip the test
|
||||
if (Files.exists(Path.of(System.getProperty("java.home")).resolve("modules"))) {
|
||||
out.println("JDK using exploded modules; test skipped");
|
||||
return;
|
||||
}
|
||||
|
||||
Path policyFile = base.resolve("test.policy");
|
||||
Path sourceFile = base.resolve("TestPermissions.java");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue