< prev index next >

test/jdk/java/foreign/TestUnsupportedPlatform.java

Print this page

22  *
23  */
24 
25 /*
26  * @test
27  * @requires !(((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64")
28  * @modules jdk.incubator.foreign/jdk.internal.foreign
29  * @run testng/othervm --enable-native-access=ALL-UNNAMED TestUnsupportedPlatform
30  */
31 
32 import jdk.incubator.foreign.CLinker;
33 import org.testng.annotations.Test;
34 
35 import static org.testng.Assert.assertNull;
36 
37 // tests run on 32-bit platforms, which are currently not supported
38 public class TestUnsupportedPlatform {
39 
40     @Test(expectedExceptions = ExceptionInInitializerError.class)
41     public void testNoInitialization() {
42         CLinker.getInstance(); // trigger initialization
43     }
44 
45 }

22  *
23  */
24 
25 /*
26  * @test
27  * @requires !(((os.arch == "amd64" | os.arch == "x86_64") & sun.arch.data.model == "64") | os.arch == "aarch64")
28  * @modules jdk.incubator.foreign/jdk.internal.foreign
29  * @run testng/othervm --enable-native-access=ALL-UNNAMED TestUnsupportedPlatform
30  */
31 
32 import jdk.incubator.foreign.CLinker;
33 import org.testng.annotations.Test;
34 
35 import static org.testng.Assert.assertNull;
36 
37 // tests run on 32-bit platforms, which are currently not supported
38 public class TestUnsupportedPlatform {
39 
40     @Test(expectedExceptions = ExceptionInInitializerError.class)
41     public void testNoInitialization() {
42         CLinker.systemCLinker(); // trigger initialization
43     }
44 
45 }
< prev index next >