mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-10-22 16:22:49 +00:00
Unit tests: Disable a nasty HotSpot optimization that causes exception messages and traces to go missing.
For more information, see http://jawspeak.com/2010/05/26/hotspot-caused-exceptions-to-lose-their-stack-traces-in-production-and-the-fix/
This commit is contained in:
@@ -321,7 +321,10 @@
|
|||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<argLine>-Xmx1024m ${surefireArgLine}</argLine><!-- Last argument is required for code coverage to work. -->
|
<!-- First argument increases the maximum heap size, second argument disables a nasty HotSpot optimization
|
||||||
|
(see http://jawspeak.com/2010/05/26/hotspot-caused-exceptions-to-lose-their-stack-traces-in-production-and-the-fix/)
|
||||||
|
and last argument is required for code coverage to work. -->
|
||||||
|
<argLine>-Xmx1024m -XX:-OmitStackTraceInFastThrow ${surefireArgLine}</argLine>
|
||||||
<runOrder>alphabetical</runOrder>
|
<runOrder>alphabetical</runOrder>
|
||||||
<systemProperties>
|
<systemProperties>
|
||||||
<property>
|
<property>
|
||||||
|
Reference in New Issue
Block a user