Skip to content

Commit

Permalink
Skip Credentials related tests on non-Linux platforms. See jnr#36
Browse files Browse the repository at this point in the history
  • Loading branch information
felfert committed Nov 4, 2016
1 parent 432ee0d commit 2462b00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/java/jnr/unixsocket/ChannelOptionsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public class ChannelOptionsTest {

@Test
public void readonlyDatagramChannelOptionTest() throws Exception {
Assume.assumeTrue(OS.LINUX == Platform.getNativePlatform().getOS());

UnixDatagramChannel[] sp = UnixDatagramChannel.pair();
UnixDatagramChannel ch = sp[0];
Credentials c = ch.socket().getCredentials();
Expand All @@ -60,6 +62,8 @@ public void readonlyDatagramChannelOptionTest() throws Exception {

@Test
public void readonlySocketChannelOptionTest() throws Exception {
Assume.assumeTrue(OS.LINUX == Platform.getNativePlatform().getOS());

UnixSocketChannel[] sp = UnixSocketChannel.pair();
UnixSocketChannel ch = sp[0];
Credentials c = ch.socket().getCredentials();
Expand Down

0 comments on commit 2462b00

Please sign in to comment.