You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kr...@apache.org on 2012/12/17 18:00:20 UTC
git commit: o Reduced likelyhood that a single thread will steal all
the testcases, effectively failing the test
Updated Branches:
refs/heads/master ab0cc7a84 -> d9fdcf8dc
o Reduced likelyhood that a single thread will steal all the testcases, effectively failing the test
Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/d9fdcf8d
Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/d9fdcf8d
Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/d9fdcf8d
Branch: refs/heads/master
Commit: d9fdcf8dc3ee59de9a200dae813f9213bdabf9fd
Parents: ab0cc7a
Author: Kristian Rosenvold <kr...@apache.org>
Authored: Mon Dec 17 17:59:53 2012 +0100
Committer: Kristian Rosenvold <kr...@apache.org>
Committed: Mon Dec 17 17:59:53 2012 +0100
----------------------------------------------------------------------
.../src/test/resources/fork-mode/pom.xml | 1 +
.../fork-mode/src/test/java/forkMode/Test1.java | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/d9fdcf8d/surefire-integration-tests/src/test/resources/fork-mode/pom.xml
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/fork-mode/pom.xml b/surefire-integration-tests/src/test/resources/fork-mode/pom.xml
index aa37e2c..ca7d365 100644
--- a/surefire-integration-tests/src/test/resources/fork-mode/pom.xml
+++ b/surefire-integration-tests/src/test/resources/fork-mode/pom.xml
@@ -43,6 +43,7 @@
<configuration>
<forkMode>${forkMode}</forkMode>
<threadCount>${threadCount}</threadCount>
+ <runOrder>alphabetical</runOrder>
</configuration>
</plugin>
</plugins>
http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/d9fdcf8d/surefire-integration-tests/src/test/resources/fork-mode/src/test/java/forkMode/Test1.java
----------------------------------------------------------------------
diff --git a/surefire-integration-tests/src/test/resources/fork-mode/src/test/java/forkMode/Test1.java b/surefire-integration-tests/src/test/resources/fork-mode/src/test/java/forkMode/Test1.java
index 01f1151..ca5af55 100644
--- a/surefire-integration-tests/src/test/resources/fork-mode/src/test/java/forkMode/Test1.java
+++ b/surefire-integration-tests/src/test/resources/fork-mode/src/test/java/forkMode/Test1.java
@@ -15,9 +15,11 @@ public class Test1
private static final Random RANDOM = new Random();
public void test1()
- throws IOException
+ throws IOException, InterruptedException
{
+ Thread.sleep( 750 );
dumpPidFile( this );
+
}
public static void dumpPidFile( TestCase test )