You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2022/01/29 09:25:34 UTC

[maven-surefire] branch macos-832 updated (48b3d1a -> 0d31a80)

This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a change to branch macos-832
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git.


 discard 48b3d1a  investigating path to jar of ForkedBooter
     new 0d31a80  investigating path to jar of ForkedBooter

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (48b3d1a)
            \
             N -- N -- N   refs/heads/macos-832 (0d31a80)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../surefire-832-provider-selection/src/test/java/junit4/BasicTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

[maven-surefire] 01/01: investigating path to jar of ForkedBooter

Posted by ti...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch macos-832
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git

commit 0d31a80b7b70e2c0629f8af4543d05106538ee23
Author: Tibor Digaňa <ti...@apache.org>
AuthorDate: Sat Jan 29 09:25:26 2022 +0100

    investigating path to jar of ForkedBooter
---
 surefire-its/pom.xml                                           |  4 ++--
 .../surefire/its/jiras/Surefire832ProviderSelectionIT.java     |  4 ++++
 .../src/test/java/junit4/BasicTest.java                        | 10 +++++++++-
 3 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/surefire-its/pom.xml b/surefire-its/pom.xml
index 5a647d6..f2cabec 100644
--- a/surefire-its/pom.xml
+++ b/surefire-its/pom.xml
@@ -774,7 +774,7 @@
                             <forkMode>once</forkMode>
                             <argLine>-server -Xmx64m -XX:+UseG1GC -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Djava.awt.headless=true -Djdk.net.URLClassPath.disableClassPathURLCheck=true</argLine>
                             <includes>
-                                <include>org/apache/**/*IT*.java</include>
+                                <include>Surefire832ProviderSelectionIT</include>
                             </includes>
                             <!-- Pass current surefire version to the main suite so that it -->
                             <!-- can forward to all integration test projects. SUREFIRE-513 -->
@@ -790,7 +790,7 @@
                                 <!-- see the f/w com.googlecode.junit-toolbox:junit-toolbox -->
                                 <maxParallelTestThreads>3</maxParallelTestThreads>
                             </systemPropertyVariables>
-                            <redirectTestOutputToFile>true</redirectTestOutputToFile>
+                            <redirectTestOutputToFile>false</redirectTestOutputToFile>
                             <enableProcessChecker>native</enableProcessChecker>
                             <shutdown>kill</shutdown>
                         </configuration>
diff --git a/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire832ProviderSelectionIT.java b/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire832ProviderSelectionIT.java
index 6e02ed2..32e6cda 100755
--- a/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire832ProviderSelectionIT.java
+++ b/surefire-its/src/test/java/org/apache/maven/surefire/its/jiras/Surefire832ProviderSelectionIT.java
@@ -24,6 +24,8 @@ import org.apache.maven.surefire.its.fixture.SurefireJUnit4IntegrationTestCase;
 import org.apache.maven.surefire.its.fixture.SurefireLauncher;
 import org.junit.Test;
 
+import java.lang.management.ManagementFactory;
+
 /**
  *
  */
@@ -33,6 +35,8 @@ public class Surefire832ProviderSelectionIT
     @Test
     public void testJUnitRunCategoryAB()
     {
+        String pid = ManagementFactory.getRuntimeMXBean().getName();
+        System.out.println( "Surefire832ProviderSelectionIT :: pid=" + pid );
         OutputValidator validator = unpackJUnit().groups( "junit4.CategoryA AND junit4.CategoryB" ).executeTest();
         validator.verifyErrorFreeLog();
         validator.assertTestSuiteResults( 2, 0, 0, 0 );
diff --git a/surefire-its/src/test/resources/surefire-832-provider-selection/src/test/java/junit4/BasicTest.java b/surefire-its/src/test/resources/surefire-832-provider-selection/src/test/java/junit4/BasicTest.java
index ecfec31..5e3c0cb 100644
--- a/surefire-its/src/test/resources/surefire-832-provider-selection/src/test/java/junit4/BasicTest.java
+++ b/surefire-its/src/test/resources/surefire-832-provider-selection/src/test/java/junit4/BasicTest.java
@@ -25,6 +25,9 @@ import org.junit.Test;
 import org.junit.experimental.categories.Category;
 import org.junit.rules.TestName;
 
+import java.lang.management.ManagementFactory;
+import java.net.URI;
+
 
 public class BasicTest
 {
@@ -37,8 +40,13 @@ public class BasicTest
     public TestName testName = new TestName();
     
     @Before
-    public void testName()
+    public void testName() throws Exception
     {
+        URI booterLocation = Class.forName( "org.apache.maven.surefire.booter.ForkedBooter" )
+            .getProtectionDomain().getCodeSource().getLocation().toURI();
+        System.out.println( "booterLocation=" + booterLocation );
+        String pid = ManagementFactory.getRuntimeMXBean().getName();
+        System.out.println( "BasicTest :: pid=" + pid );
         System.out.println( "Running " + getClass().getName() + "." + testName.getMethodName() );
     }