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 10:27:04 UTC

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

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 0d31a80  investigating path to jar of ForkedBooter
     new fb59373  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   (0d31a80)
            \
             N -- N -- N   refs/heads/macos-832 (fb59373)

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-its/pom.xml                                                  | 1 -
 .../maven/surefire/its/jiras/Surefire832ProviderSelectionIT.java      | 4 +++-
 .../src/test/java/junit4/BasicTest.java                               | 1 +
 3 files changed, 4 insertions(+), 2 deletions(-)

[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 fb59373caed41be8c45ed9e3d2e228aac086b21a
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                                          |  5 ++---
 .../surefire/its/jiras/Surefire832ProviderSelectionIT.java    |  8 +++++++-
 .../src/test/java/junit4/BasicTest.java                       | 11 ++++++++++-
 3 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/surefire-its/pom.xml b/surefire-its/pom.xml
index 5a647d6..af1e448 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,8 +790,7 @@
                                 <!-- see the f/w com.googlecode.junit-toolbox:junit-toolbox -->
                                 <maxParallelTestThreads>3</maxParallelTestThreads>
                             </systemPropertyVariables>
-                            <redirectTestOutputToFile>true</redirectTestOutputToFile>
-                            <enableProcessChecker>native</enableProcessChecker>
+                            <redirectTestOutputToFile>false</redirectTestOutputToFile>
                             <shutdown>kill</shutdown>
                         </configuration>
                         <dependencies>
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..0f7aa44 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;
+
 /**
  *
  */
@@ -31,8 +33,10 @@ public class Surefire832ProviderSelectionIT
     extends SurefireJUnit4IntegrationTestCase
 {
     @Test
-    public void testJUnitRunCategoryAB()
+    public void testJUnitRunCategoryAB() throws Exception
     {
+        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 );
@@ -43,6 +47,8 @@ public class Surefire832ProviderSelectionIT
         validator.verifyTextInLog( "mA: 1" );
         validator.verifyTextInLog( "mB: 1" );
         validator.verifyTextInLog( "mC: 0" );
+
+        validator.loadLogLines().forEach( System.out::println );
     }
 
     private SurefireLauncher unpackJUnit()
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..4d77574 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,14 @@ 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( "CLASSPATH=" + System.getenv( "CLASSPATH" ) );
         System.out.println( "Running " + getClass().getName() + "." + testName.getMethodName() );
     }