Skip to content

Commit 9aed20f

Browse files
committed
Enable macOS-specific test only on macOS
1 parent c6f901f commit 9aed20f

File tree

1 file changed

+3
-0
lines changed
  • src/test/java/engineering/swat/watch/impl/mac

1 file changed

+3
-0
lines changed

src/test/java/engineering/swat/watch/impl/mac/APIs.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
import org.apache.logging.log4j.LogManager;
4545
import org.apache.logging.log4j.Logger;
4646
import org.junit.jupiter.api.Test;
47+
import org.junit.jupiter.api.condition.EnabledOnOs;
48+
import org.junit.jupiter.api.condition.OS;
4749

4850
import com.sun.jna.Memory;
4951
import com.sun.jna.Native;
@@ -59,6 +61,7 @@
5961
import engineering.swat.watch.impl.mac.apis.FileSystemEvents;
6062
import engineering.swat.watch.impl.mac.apis.FileSystemEvents.FSEventStreamEventFlag;
6163

64+
@EnabledOnOs({OS.MAC})
6265
class APIs {
6366
private static final Logger LOGGER = LogManager.getLogger();
6467

0 commit comments

Comments
 (0)