This is an automated email from the ASF dual-hosted git repository.
chrisdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 182ed19edc fix: Implemented something to gracefully detect if PCAP
libs are not available and to skip the tests related to that.
182ed19edc is described below
commit 182ed19edc8571e5dff3b39d1915998a520bc6fb
Author: Christofer Dutz <[email protected]>
AuthorDate: Fri Jun 12 16:50:33 2026 +0200
fix: Implemented something to gracefully detect if PCAP libs are not
available and to skip the tests related to that.
---
.../apache/plc4x/java/transport/rawsocket/RawSocketTransportTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/plc4j/transports/raw-socket/src/test/java/org/apache/plc4x/java/transport/rawsocket/RawSocketTransportTest.java
b/plc4j/transports/raw-socket/src/test/java/org/apache/plc4x/java/transport/rawsocket/RawSocketTransportTest.java
index 37ea129f33..6bc1d91f42 100644
---
a/plc4j/transports/raw-socket/src/test/java/org/apache/plc4x/java/transport/rawsocket/RawSocketTransportTest.java
+++
b/plc4j/transports/raw-socket/src/test/java/org/apache/plc4x/java/transport/rawsocket/RawSocketTransportTest.java
@@ -236,6 +236,9 @@ class RawSocketTransportTest {
@Test
void testCreateTransportInstance_invalidInterface() {
+ // Constructing the instance reaches pcap's native layer, so skip when
it's unavailable.
+ PcapTestSupport.findAllDevsOrSkip();
+
RawSocketTransportConfiguration config = new
RawSocketTransportConfiguration();
config.interfaceName = "INVALID_INTERFACE_THAT_DOES_NOT_EXIST";
config.remoteAddress = "00:00:00:00:00:01";