equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
81 // Make sure the classes are actually being loaded from mods2 |
81 // Make sure the classes are actually being loaded from mods2 |
82 Files.delete(Paths.get(System.getProperty("test.classes") + File.separator + |
82 Files.delete(Paths.get(System.getProperty("test.classes") + File.separator + |
83 "p2" + File.separator + "Vis2_B.class")); |
83 "p2" + File.separator + "Vis2_B.class")); |
84 |
84 |
85 new OutputAnalyzer(ProcessTools.createJavaProcessBuilder( |
85 new OutputAnalyzer(ProcessTools.createJavaProcessBuilder( |
86 "-Xpatch:mods2", |
86 "-Xpatch:java.base=mods2/java.base", |
87 "-XaddExports:java.base/p2=ALL-UNNAMED", |
87 "-XaddExports:java.base/p2=ALL-UNNAMED", |
88 "Vis2_A") |
88 "Vis2_A") |
89 .start()).shouldHaveExitValue(0); |
89 .start()).shouldHaveExitValue(0); |
90 } |
90 } |
91 } |
91 } |