mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-09 17:53:59 +00:00
parent
22e133cce6
commit
96bd691f55
@ -58,6 +58,7 @@ func TestMain(m *testing.M) {
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
testDir = "testdata"
|
testDir = "testdata"
|
||||||
|
failsOnOpenBSD = "Fails on OpenBSD. See https://github.com/rjeczalik/notify/issues/172"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -66,6 +67,9 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestWatchIgnore(t *testing.T) {
|
func TestWatchIgnore(t *testing.T) {
|
||||||
|
if runtime.GOOS == "openbsd" {
|
||||||
|
t.Skip(failsOnOpenBSD)
|
||||||
|
}
|
||||||
name := "ignore"
|
name := "ignore"
|
||||||
|
|
||||||
file := "file"
|
file := "file"
|
||||||
@ -87,6 +91,9 @@ func TestWatchIgnore(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestWatchInclude(t *testing.T) {
|
func TestWatchInclude(t *testing.T) {
|
||||||
|
if runtime.GOOS == "openbsd" {
|
||||||
|
t.Skip(failsOnOpenBSD)
|
||||||
|
}
|
||||||
name := "include"
|
name := "include"
|
||||||
|
|
||||||
file := "file"
|
file := "file"
|
||||||
@ -111,6 +118,9 @@ func TestWatchInclude(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestWatchRename(t *testing.T) {
|
func TestWatchRename(t *testing.T) {
|
||||||
|
if runtime.GOOS == "openbsd" {
|
||||||
|
t.Skip(failsOnOpenBSD)
|
||||||
|
}
|
||||||
name := "rename"
|
name := "rename"
|
||||||
|
|
||||||
old := createTestFile(name, "oldfile")
|
old := createTestFile(name, "oldfile")
|
||||||
@ -203,6 +213,9 @@ func TestWatchSubpath(t *testing.T) {
|
|||||||
|
|
||||||
// TestWatchOverflow checks that an event at the root is sent when maxFiles is reached
|
// TestWatchOverflow checks that an event at the root is sent when maxFiles is reached
|
||||||
func TestWatchOverflow(t *testing.T) {
|
func TestWatchOverflow(t *testing.T) {
|
||||||
|
if runtime.GOOS == "openbsd" {
|
||||||
|
t.Skip(failsOnOpenBSD)
|
||||||
|
}
|
||||||
name := "overflow"
|
name := "overflow"
|
||||||
|
|
||||||
expectedEvents := []Event{
|
expectedEvents := []Event{
|
||||||
|
Loading…
Reference in New Issue
Block a user