Skip to content

Commit acb46dd

Browse files
author
SendaoYan
committed
8345155: Add /native to native test in FFM
Reviewed-by: mcimadamore, pminborg
1 parent d85f651 commit acb46dd

34 files changed

+76
-76
lines changed

test/jdk/java/foreign/LibraryLookupTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -41,15 +41,15 @@
4141

4242
/*
4343
* @test id=specialized
44-
* @run testng/othervm
44+
* @run testng/othervm/native
4545
* -Djdk.internal.foreign.DowncallLinker.USE_SPEC=true
4646
* --enable-native-access=ALL-UNNAMED
4747
* LibraryLookupTest
4848
*/
4949

5050
/*
5151
* @test id=interpreted
52-
* @run testng/othervm
52+
* @run testng/othervm/native
5353
* -Djdk.internal.foreign.DowncallLinker.USE_SPEC=false
5454
* --enable-native-access=ALL-UNNAMED
5555
* LibraryLookupTest

test/jdk/java/foreign/SafeFunctionAccessTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,15 +23,15 @@
2323

2424
/*
2525
* @test id=specialized
26-
* @run testng/othervm
26+
* @run testng/othervm/native
2727
* -Djdk.internal.foreign.DowncallLinker.USE_SPEC=true
2828
* --enable-native-access=ALL-UNNAMED
2929
* SafeFunctionAccessTest
3030
*/
3131

3232
/*
3333
* @test id=interpreted
34-
* @run testng/othervm
34+
* @run testng/othervm/native
3535
* -Djdk.internal.foreign.DowncallLinker.USE_SPEC=false
3636
* --enable-native-access=ALL-UNNAMED
3737
* SafeFunctionAccessTest

test/jdk/java/foreign/Test4BAlignedDouble.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2024 SAP SE. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -26,7 +26,7 @@
2626
* @test
2727
* @summary Test passing of a structure which contains a double with 4 Byte alignment on AIX.
2828
*
29-
* @run testng/othervm --enable-native-access=ALL-UNNAMED Test4BAlignedDouble
29+
* @run testng/othervm/native --enable-native-access=ALL-UNNAMED Test4BAlignedDouble
3030
*/
3131

3232
import java.lang.foreign.*;

test/jdk/java/foreign/TestAddressDereference.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,7 +24,7 @@
2424
/*
2525
* @test
2626
* @library ../ /test/lib
27-
* @run testng/othervm --enable-native-access=ALL-UNNAMED TestAddressDereference
27+
* @run testng/othervm/native --enable-native-access=ALL-UNNAMED TestAddressDereference
2828
*/
2929

3030
import java.lang.foreign.Arena;

test/jdk/java/foreign/TestClassLoaderFindNative.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,7 +23,7 @@
2323

2424
/*
2525
* @test
26-
* @run testng/othervm --enable-native-access=ALL-UNNAMED TestClassLoaderFindNative
26+
* @run testng/othervm/native --enable-native-access=ALL-UNNAMED TestClassLoaderFindNative
2727
*/
2828

2929
import java.lang.foreign.Arena;

test/jdk/java/foreign/TestDowncallScope.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,11 +26,11 @@
2626
* @modules java.base/jdk.internal.foreign
2727
* @build NativeTestHelper CallGeneratorHelper TestDowncallBase
2828
*
29-
* @run testng/othervm -Xcheck:jni -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies
29+
* @run testng/othervm/native -Xcheck:jni -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies
3030
* --enable-native-access=ALL-UNNAMED -Dgenerator.sample.factor=17
3131
* TestDowncallScope
3232
*
33-
* @run testng/othervm -Xint -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies
33+
* @run testng/othervm/native -Xint -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies
3434
* --enable-native-access=ALL-UNNAMED -Dgenerator.sample.factor=100000
3535
* TestDowncallScope
3636
*/

test/jdk/java/foreign/TestDowncallStack.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -26,7 +26,7 @@
2626
* @modules java.base/jdk.internal.foreign
2727
* @build NativeTestHelper CallGeneratorHelper TestDowncallBase
2828
*
29-
* @run testng/othervm -Xcheck:jni -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies
29+
* @run testng/othervm/native -Xcheck:jni -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies
3030
* --enable-native-access=ALL-UNNAMED -Dgenerator.sample.factor=17
3131
* TestDowncallStack
3232
*/

test/jdk/java/foreign/TestHFA.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
33
* Copyright (c) 2023 SAP SE. All rights reserved.
44
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
55
*
@@ -26,7 +26,7 @@
2626
* @test
2727
* @summary Test passing of Homogeneous Float Aggregates.
2828
*
29-
* @run testng/othervm --enable-native-access=ALL-UNNAMED TestHFA
29+
* @run testng/othervm/native --enable-native-access=ALL-UNNAMED TestHFA
3030
*/
3131

3232
import java.lang.foreign.*;

test/jdk/java/foreign/TestIntrinsics.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,7 +23,7 @@
2323

2424
/*
2525
* @test
26-
* @run testng/othervm
26+
* @run testng/othervm/native
2727
* -Djdk.internal.foreign.DowncallLinker.USE_SPEC=true
2828
* --enable-native-access=ALL-UNNAMED
2929
* -Xbatch

test/jdk/java/foreign/TestNULLAddress.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -23,7 +23,7 @@
2323

2424
/*
2525
* @test
26-
* @run testng/othervm
26+
* @run testng/othervm/native
2727
* --enable-native-access=ALL-UNNAMED
2828
* TestNULLAddress
2929
*/

0 commit comments

Comments
 (0)