Skip to content

Commit

Permalink
Add unsafe run for c module tests
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Feb 13, 2024
1 parent 5d0475f commit ffffe97
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions java/c/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,71 @@
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<configuration>
<classpathDependencyExcludes>
<classpathDependencyExclude>org.apache.arrow:arrow-memory-unsafe</classpathDependencyExclude>
</classpathDependencyExcludes>
</configuration>
</execution>
<execution>
<id>run-unsafe</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<classpathDependencyExcludes>
<classpathDependencyExclude>org.apache.arrow:arrow-memory-netty</classpathDependencyExclude>
</classpathDependencyExcludes>
<reportNameSuffix>netty</reportNameSuffix>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.3</version>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>${dep.junit.jupiter.version}</version>
</dependency>
<dependency>
<groupId>org.apache.maven.surefire</groupId>
<artifactId>surefire-junit-platform</artifactId>
<version>3.2.3</version>
</dependency>
</dependencies>
<configuration>
<enableAssertions>true</enableAssertions>
<childDelegation>true</childDelegation>
<forkCount>${forkCount}</forkCount>
<reuseForks>true</reuseForks>
<systemPropertyVariables>
<java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
<io.netty.tryReflectionSetAccessible>true</io.netty.tryReflectionSetAccessible>
<user.timezone>UTC</user.timezone>
<!-- Note: changing the below configuration might increase the max allocation size for a vector
which in turn can cause OOM. -->
<arrow.vector.max_allocation_bytes>1048576</arrow.vector.max_allocation_bytes>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</pluginManagement>

</build>

</project>

0 comments on commit ffffe97

Please sign in to comment.