From 420d8f8293905a6c31d09836fa1372288ae2b9a0 Mon Sep 17 00:00:00 2001 From: Theresa Mammarella Date: Tue, 3 Dec 2024 14:20:13 -0500 Subject: [PATCH] Modify JSR166TestCase to gather more error information Update Xdump to catch JUnit exception and AssertionFailedError Signed-off-by: Theresa Mammarella --- .../util/concurrent/tck/JSR166TestCase.java | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java index 19b9bb5bd9b..79f0149a08d 100644 --- a/test/jdk/java/util/concurrent/tck/JSR166TestCase.java +++ b/test/jdk/java/util/concurrent/tck/JSR166TestCase.java @@ -39,7 +39,10 @@ * @summary Conformance testing variant of JSR-166 tck tests. * @build * * @modules java.management - * @run junit/othervm/timeout=1000 -Xdump:system+java+snap:events=systhrow,filter=java/lang/Exception,msg_filter=*JUnit* JSR166TestCase + * @run junit/othervm/timeout=1000 + * -Xdump:system+java+snap:events=throw+systhrow,filter=java/lang/Exception,msg_filter=*JUnit* + * -Xdump:system+java+snap:events=throw+systhrow,filter=junit/framework/AssertionFailedError + * JSR166TestCase */ /* @@ -53,7 +56,8 @@ * --add-opens java.base/java.lang=ALL-UNNAMED * -Djsr166.testImplementationDetails=true * -Djava.util.concurrent.ForkJoinPool.common.parallelism=0 - * -Xdump:system+java+snap:events=systhrow,filter=java/lang/Exception,msg_filter=*JUnit* + * -Xdump:system+java+snap:events=throw+systhrow,filter=java/lang/Exception,msg_filter=*JUnit* + * -Xdump:system+java+snap:events=throw+systhrow,filter=junit/framework/AssertionFailedError * JSR166TestCase * @run junit/othervm/timeout=1000 * --add-opens java.base/java.util.concurrent=ALL-UNNAMED @@ -61,7 +65,8 @@ * -Djsr166.testImplementationDetails=true * -Djava.util.concurrent.ForkJoinPool.common.parallelism=1 * -Djava.util.secureRandomSeed=true - * -Xdump:system+java+snap:events=systhrow,filter=java/lang/Exception,msg_filter=*JUnit* + * -Xdump:system+java+snap:events=throw+systhrow,filter=java/lang/Exception,msg_filter=*JUnit* + * -Xdump:system+java+snap:events=throw+systhrow,filter=junit/framework/AssertionFailedError * JSR166TestCase */ @@ -76,13 +81,15 @@ * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED * -Djsr166.testImplementationDetails=true - * -Xdump:system+java+snap:events=systhrow,filter=java/lang/Exception,msg_filter=*JUnit* + * -Xdump:system+java+snap:events=throw+systhrow,filter=java/lang/Exception,msg_filter=*JUnit* + * -Xdump:system+java+snap:events=throw+systhrow,filter=junit/framework/AssertionFailedError * JSR166TestCase * @run junit/othervm/timeout=1000/policy=tck.policy * --add-opens java.base/java.util.concurrent=ALL-UNNAMED * --add-opens java.base/java.lang=ALL-UNNAMED * -Djsr166.testImplementationDetails=true - * -Xdump:system+java+snap:events=systhrow,filter=java/lang/Exception,msg_filter=*JUnit* + * -Xdump:system+java+snap:events=throw+systhrow,filter=java/lang/Exception,msg_filter=*JUnit* + * -Xdump:system+java+snap:events=throw+systhrow,filter=junit/framework/AssertionFailedError * JSR166TestCase */