Repository: maven-surefire
Updated Branches:
refs/heads/master dc3f3674e -> b08627f0f
[SUREFIRE-1352] Dump file [date]-jvmRun[N] where N should be real fork number
Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/b08627f0
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/b08627f0
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/b08627f0
Branch: refs/heads/master
Commit: b08627f0fd21ab16b682badbc205cd2823f64656
Parents: dc3f367
Author: Tibor17 <tibor17@lycos.com>
Authored: Sat Apr 1 19:55:45 2017 +0200
Committer: Tibor17 <tibor17@lycos.com>
Committed: Sat Apr 1 19:55:45 2017 +0200
----------------------------------------------------------------------
.../apache/maven/plugin/surefire/booterclient/ForkStarter.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/b08627f0/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
----------------------------------------------------------------------
diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
index b69d010..5360b4c 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/ForkStarter.java
@@ -132,8 +132,6 @@ public class ForkStarter
private static final String DUMP_FILE_PREFIX = DumpFileUtils.newFormattedDateFileName()
+ "-jvmRun";
- private static final AtomicInteger DUMP_FILE_POSTFIX_COUNTER = new AtomicInteger();
-
private final ScheduledExecutorService pingThreadScheduler = createPingScheduler();
private final ScheduledExecutorService timeoutCheckScheduler;
@@ -594,7 +592,7 @@ public class ForkStarter
}
cli.createArg().setValue( tempDir );
- cli.createArg().setValue( DUMP_FILE_PREFIX + DUMP_FILE_POSTFIX_COUNTER.incrementAndGet()
);
+ cli.createArg().setValue( DUMP_FILE_PREFIX + forkNumber );
cli.createArg().setValue( surefireProperties.getName() );
if ( systPropsFile != null )
{
|