Skip to content

Commit 2ec61f0

Browse files
committed
8353214: Add testing with --enable-preview
Reviewed-by: erikj
1 parent f097aa9 commit 2ec61f0

File tree

4 files changed

+69
-0
lines changed

4 files changed

+69
-0
lines changed

make/RunTests.gmk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,11 @@ define SetupRunJtregTestBody
929929
JTREG_AUTO_PROBLEM_LISTS += ProblemList-shenandoah.txt
930930
endif
931931

932+
ifneq ($$(findstring --enable-preview, $$(JTREG_ALL_OPTIONS)), )
933+
JTREG_AUTO_PROBLEM_LISTS += ProblemList-enable-preview.txt
934+
endif
935+
936+
932937
ifneq ($$(JTREG_EXTRA_PROBLEM_LISTS), )
933938
# Accept both absolute paths as well as relative to the current test root.
934939
$1_JTREG_BASIC_OPTIONS += $$(addprefix $$(JTREG_PROBLEM_LIST_PREFIX), $$(wildcard \
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#
2+
# Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
3+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
#
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
7+
# published by the Free Software Foundation.
8+
#
9+
# This code is distributed in the hope that it will be useful, but WITHOUT
10+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12+
# version 2 for more details (a copy is included in the LICENSE file that
13+
# accompanied this code).
14+
#
15+
# You should have received a copy of the GNU General Public License version
16+
# 2 along with this work; if not, write to the Free Software Foundation,
17+
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18+
#
19+
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20+
# or visit www.oracle.com if you need additional information or have any
21+
# questions.
22+
#
23+
24+
#############################################################################
25+
#
26+
# List of quarantined tests for testing with --enable-preview
27+
#
28+
#############################################################################
29+
30+
vmTestbase/nsk/jdi/ClassType/invokeMethod/invokemethod009/TestDescription.java 8351188 generic-all
31+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# Copyright (c) 2025, Oracle and/or its affiliates. All rights reserved.
3+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
#
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
7+
# published by the Free Software Foundation.
8+
#
9+
# This code is distributed in the hope that it will be useful, but WITHOUT
10+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12+
# version 2 for more details (a copy is included in the LICENSE file that
13+
# accompanied this code).
14+
#
15+
# You should have received a copy of the GNU General Public License version
16+
# 2 along with this work; if not, write to the Free Software Foundation,
17+
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18+
#
19+
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20+
# or visit www.oracle.com if you need additional information or have any
21+
# questions.
22+
#
23+
24+
#############################################################################
25+
#
26+
# List of quarantined tests for testing with --enable-preview
27+
#
28+
#############################################################################
29+
30+
java/lang/System/SecurityManagerWarnings.java 8351188 generic-all
31+
java/lang/System/LoggerFinder/SignedLoggerFinderTest/SignedLoggerFinderTest.java 8351188 generic-all
32+

test/jdk/jdk/modules/etc/DefaultModules.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
/**
2525
* @test
2626
* @bug 8197532
27+
* @requires !java.enablePreview
2728
* @modules jdk.compiler
2829
* jdk.jlink
2930
* jdk.zipfs

0 commit comments

Comments
 (0)