Skip to content

Commit 2462b00

Browse files
committed
Skip Credentials related tests on non-Linux platforms. See jnr#36
1 parent 432ee0d commit 2462b00

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/java/jnr/unixsocket/ChannelOptionsTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ public class ChannelOptionsTest {
4646

4747
@Test
4848
public void readonlyDatagramChannelOptionTest() throws Exception {
49+
Assume.assumeTrue(OS.LINUX == Platform.getNativePlatform().getOS());
50+
4951
UnixDatagramChannel[] sp = UnixDatagramChannel.pair();
5052
UnixDatagramChannel ch = sp[0];
5153
Credentials c = ch.socket().getCredentials();
@@ -60,6 +62,8 @@ public void readonlyDatagramChannelOptionTest() throws Exception {
6062

6163
@Test
6264
public void readonlySocketChannelOptionTest() throws Exception {
65+
Assume.assumeTrue(OS.LINUX == Platform.getNativePlatform().getOS());
66+
6367
UnixSocketChannel[] sp = UnixSocketChannel.pair();
6468
UnixSocketChannel ch = sp[0];
6569
Credentials c = ch.socket().getCredentials();

0 commit comments

Comments
 (0)