Skip to content

Commit

Permalink
Modify JSR166TestCase to gather more error information
Browse files Browse the repository at this point in the history
Update Xdump to catch JUnit exception and AssertionFailedError

Signed-off-by: Theresa Mammarella <[email protected]>
  • Loading branch information
theresa-m committed Dec 3, 2024
1 parent 27f9ff5 commit 420d8f8
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions test/jdk/java/util/concurrent/tck/JSR166TestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/*
Expand All @@ -53,15 +56,17 @@
* --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
* --add-opens java.base/java.lang=ALL-UNNAMED
* -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
*/

Expand All @@ -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
*/

Expand Down

0 comments on commit 420d8f8

Please sign in to comment.