提交 7c946207 编写于 作者: O ohair

6909373: Add -ea to the testing done by jdk/test/Makefile

Reviewed-by: darcy
上级 a319c82f
...@@ -370,7 +370,8 @@ ifndef USE_JTREG_SAMEVM ...@@ -370,7 +370,8 @@ ifndef USE_JTREG_SAMEVM
endif endif
# With samevm, you cannot use -javaoptions? # With samevm, you cannot use -javaoptions?
ifeq ($(USE_JTREG_SAMEVM),true) ifeq ($(USE_JTREG_SAMEVM),true)
EXTRA_JTREG_OPTIONS += -samevm $(JAVA_ARGS) $(JAVA_ARGS:%=-vmoption:%) JTREG_SAMEVM_OPTION = -samevm
EXTRA_JTREG_OPTIONS += $(JTREG_SAMEVM_OPTION) $(JAVA_ARGS) $(JAVA_ARGS:%=-vmoption:%)
JTREG_TEST_OPTIONS = $(JAVA_VM_ARGS:%=-vmoption:%) JTREG_TEST_OPTIONS = $(JAVA_VM_ARGS:%=-vmoption:%)
else else
JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%) JTREG_TEST_OPTIONS = $(JAVA_ARGS:%=-javaoptions:%) $(JAVA_VM_ARGS:%=-vmoption:%)
...@@ -600,16 +601,22 @@ JTREG = $(JT_HOME)/win32/bin/jtreg ...@@ -600,16 +601,22 @@ JTREG = $(JT_HOME)/win32/bin/jtreg
JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS) JTREG_BASIC_OPTIONS += $(EXTRA_JTREG_OPTIONS)
# Only run automatic tests # Only run automatic tests
JTREG_BASIC_OPTIONS += -a JTREG_BASIC_OPTIONS += -a
# Always turn on assertions
JTREG_ASSERT_OPTION = -ea -esa
JTREG_BASIC_OPTIONS += $(JTREG_ASSERT_OPTION)
# Report details on all failed or error tests, times too # Report details on all failed or error tests, times too
JTREG_BASIC_OPTIONS += -v:fail,error,time JTREG_BASIC_OPTIONS += -v:fail,error,time
# Retain all files for failing tests # Retain all files for failing tests
JTREG_BASIC_OPTIONS += -retain:fail,error JTREG_BASIC_OPTIONS += -retain:fail,error
# Ignore tests are not run and completely silent about it # Ignore tests are not run and completely silent about it
JTREG_BASIC_OPTIONS += -ignore:quiet JTREG_IGNORE_OPTION = -ignore:quiet
JTREG_BASIC_OPTIONS += $(JTREG_IGNORE_OPTION)
# Multiple by 4 the timeout numbers # Multiple by 4 the timeout numbers
JTREG_BASIC_OPTIONS += -timeoutFactor:4 JTREG_TIMEOUT_OPTION = -timeoutFactor:4
JTREG_BASIC_OPTIONS += $(JTREG_TIMEOUT_OPTION)
# Boost the max memory for jtreg to avoid gc thrashing # Boost the max memory for jtreg to avoid gc thrashing
JTREG_BASIC_OPTIONS += -J-Xmx512m JTREG_MEMORY_OPTION = -J-Xmx512m
JTREG_BASIC_OPTIONS += $(JTREG_MEMORY_OPTION)
# Make sure jtreg exists # Make sure jtreg exists
$(JTREG): $(JT_HOME) $(JTREG): $(JT_HOME)
......
...@@ -586,6 +586,14 @@ javax/print/attribute/MediaMappingsTest.java generic-all ...@@ -586,6 +586,14 @@ javax/print/attribute/MediaMappingsTest.java generic-all
# Suspect many of these tests auffer from using fixed ports, no concrete # Suspect many of these tests auffer from using fixed ports, no concrete
# evidence. # evidence.
# Dies on Solaris 10 sparc and sparcv9, Linux -ea -esa with
# Interrupted or IO exception, maybe writing to non-unique named file?
com/sun/net/httpserver/bugs/B6373555.java generic-all
# Dies on pretty much all platforms when run with -ea -esa, Assertion error
java/net/CookieHandler/TestHttpCookie.java generic-all
java/net/URLClassLoader/closetest/CloseTest.java generic-all
# Fails on OpenSolaris, BindException unexpected # Fails on OpenSolaris, BindException unexpected
java/net/BindException/Test.java generic-all java/net/BindException/Test.java generic-all
...@@ -732,6 +740,10 @@ java/net/ProxySelector/B6737819.java generic-all ...@@ -732,6 +740,10 @@ java/net/ProxySelector/B6737819.java generic-all
# Suspect many of these tests auffer from using fixed ports, no concrete # Suspect many of these tests auffer from using fixed ports, no concrete
# evidence. # evidence.
# Fails with -ea -esa, Assertion error, but only on Solaris 10 machines?
com/sun/nio/sctp/SctpChannel/Send.java generic-all
com/sun/nio/sctp/SctpChannel/Shutdown.java generic-all
# Fails on Windows 2000, Can't delete test directory .\x.SetLastModified.dir # Fails on Windows 2000, Can't delete test directory .\x.SetLastModified.dir
# at SetLastModified.main(SetLastModified.java:107) # at SetLastModified.main(SetLastModified.java:107)
java/io/File/SetLastModified.java generic-all java/io/File/SetLastModified.java generic-all
...@@ -924,6 +936,9 @@ java/rmi/server/UnicastRemoteObject/unexportObject/UnexportLeak.java generic-all ...@@ -924,6 +936,9 @@ java/rmi/server/UnicastRemoteObject/unexportObject/UnexportLeak.java generic-all
# jdk_security # jdk_security
# Fails with -ea -esa, but only on Solaris sparc? Suspect it is timing out
sun/security/tools/keytool/standard.sh generic-all
# Fails on Solaris 10 X64, address already in use # Fails on Solaris 10 X64, address already in use
sun/security/krb5/auto/HttpNegotiateServer.java generic-all sun/security/krb5/auto/HttpNegotiateServer.java generic-all
...@@ -1158,6 +1173,9 @@ java/text/Bidi/Bug6665028.java linux-x64 ...@@ -1158,6 +1173,9 @@ java/text/Bidi/Bug6665028.java linux-x64
# So most if not all tools tests are now being run with "othervm" mode. # So most if not all tools tests are now being run with "othervm" mode.
# Some of these tools tests have a tendency to use fixed ports, bad idea. # Some of these tools tests have a tendency to use fixed ports, bad idea.
# Fails with -ea -esa on Solaris, Assertion error (Solaris specific test)
com/sun/tracing/BasicFunctionality.java generic-all
# Fails on Fedora 9 32bit, jps output differs problem # Fails on Fedora 9 32bit, jps output differs problem
sun/tools/jstatd/jstatdDefaults.sh generic-all sun/tools/jstatd/jstatdDefaults.sh generic-all
...@@ -1242,6 +1260,12 @@ tools/jar/index/MetaInf.java windows-all ...@@ -1242,6 +1260,12 @@ tools/jar/index/MetaInf.java windows-all
# jdk_util # jdk_util
# Fails with -ea -esa on all platforms with Assertion error
java/util/ResourceBundle/Test4300693.java generic-all
# Failing on all -client 32bit platforms starting with b77? See 6908348.
java/util/concurrent/BlockingQueue/CancelledProducerConsumerLoops.java generic-all
# Assert error, failures, on Linux Fedora 9 -server # Assert error, failures, on Linux Fedora 9 -server
# Windows samevm failure, assert error "Passed = 134, failed = 2" # Windows samevm failure, assert error "Passed = 134, failed = 2"
java/util/Arrays/ArrayObjectMethods.java generic-all java/util/Arrays/ArrayObjectMethods.java generic-all
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册