Skip to content

Commit

Permalink
selftest: Skip tests known to be flaky on z/OS
Browse files Browse the repository at this point in the history
Throughput tests for non-blocking AF_UNIX datagram channels seem to not
always work as expected on z/OS.

Skip these tests on z/OS for the time being.
  • Loading branch information
kohlschuetter committed Jul 25, 2023
1 parent c197580 commit 0bb1d39
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
*/
package org.newsclub.net.unix.domain;

import static org.junit.jupiter.api.Assumptions.assumeFalse;

import org.junit.jupiter.api.Test;
import org.newsclub.net.unix.AFSocketCapability;
import org.newsclub.net.unix.AFSocketCapabilityRequirement;

Expand All @@ -34,4 +37,20 @@ public ThroughputTest() {
protected String stbTestType() {
return "AF_UNIX";
}

@Override
@Test
public void testDatagramChannelNonBlocking() throws Exception {
assumeFalse("z/OS".equals(System.getProperty("os.name", "")),
"KNOWN ISSUE: Test may fail on z/OS");
super.testDatagramChannelNonBlocking();
}

@Override
@Test
public void testDatagramChannelNonBlockingDirect() throws Exception {
assumeFalse("z/OS".equals(System.getProperty("os.name", "")),
"KNOWN ISSUE: Test may fail on z/OS");
super.testDatagramChannelNonBlockingDirect();
}
}

0 comments on commit 0bb1d39

Please sign in to comment.