diff --git a/internal/restorer/preallocate_test.go b/internal/restorer/preallocate_test.go index fe77c183b..158b8a74c 100644 --- a/internal/restorer/preallocate_test.go +++ b/internal/restorer/preallocate_test.go @@ -4,6 +4,7 @@ import ( "os" "path" "strconv" + "syscall" "testing" "github.com/restic/restic/internal/fs" @@ -24,6 +25,9 @@ func TestPreallocate(t *testing.T) { }() err = preallocateFile(wr, i) + if err == syscall.ENOTSUP { + t.SkipNow() + } test.OK(t, err) fi, err := wr.Stat()