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 08:25:42 UTC

[maven-surefire] branch macos-832 created (now 48b3d1a)

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.


      at 48b3d1a  investigating path to jar of ForkedBooter

This branch includes the following new commits:

     new 48b3d1a  investigating path to jar of ForkedBooter

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.


[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 48b3d1a68437a91e7b557f875dfa51114bd4e1ed
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 ++--
 .../maven/surefire/its/jiras/Surefire832ProviderSelectionIT.java  | 4 ++++
 .../src/test/java/junit4/BasicTest.java                           | 8 ++++++++
 3 files changed, 14 insertions(+), 2 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..cf6ce94 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
 {
@@ -39,6 +42,11 @@ public class BasicTest
     @Before
     public void testName()
     {
+        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() );
     }