Skip to content

Commit

Permalink
adjust for Go 1.19 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Mercl committed Jul 25, 2022
1 parent 90c22a7 commit 62081fe
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 28 deletions.
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
//
// Changelog
//
// 2022-07-25 v1.18.0:
// 2022-07-26 v1.18.0:
//
// Adds support for Go fs.FS based SQLite virtual filesystems, see function New
// in modernc.org/sqlite/vfs.
// in modernc.org/sqlite/vfs and/or TestVFS in all_test.go
//
// 2022-04-24 v1.17.0:
//
Expand Down
4 changes: 2 additions & 2 deletions norlimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !freebsd && !ppc64le && !riscv64
// +build !freebsd,!ppc64le,!riscv64
//go:build windows
// +build windows

package sqlite // import "modernc.org/sqlite"

Expand Down
3 changes: 3 additions & 0 deletions rlimit_freebsd.go → rlimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build freebsd
// +build freebsd

package sqlite // import "modernc.org/sqlite"

import (
Expand Down
16 changes: 0 additions & 16 deletions rlimit_riscv64.go

This file was deleted.

3 changes: 3 additions & 0 deletions rlimit_ppc64le.go → rulimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux || darwin || netbsd || openbsd
// +build linux darwin netbsd openbsd

package sqlite // import "modernc.org/sqlite"

import (
Expand Down
12 changes: 4 additions & 8 deletions tcl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ func TestTclTest(t *testing.T) {
t.Skip("skipping test in short mode")
}

if err := setMaxOpenFiles(1024); err != nil { // Avoid misc7.test hanging for a long time.
t.Fatal(err)
}

blacklist := map[string]struct{}{}
switch runtime.GOARCH {
case "386", "arm":
Expand All @@ -51,16 +55,8 @@ func TestTclTest(t *testing.T) {
blacklist["tclsqlite.test"] = struct{}{}
blacklist["vtabA.test"] = struct{}{}
blacklist["windowC.test"] = struct{}{}
case "ppc64le", "riscv64":
if err := setMaxOpenFiles(1024); err != nil { // Avoid misc7.test hanging for a long time.
t.Fatal(err)
}
}
switch runtime.GOOS {
case "freebsd":
if err := setMaxOpenFiles(1024); err != nil { // Avoid misc7.test hanging for a long time.
t.Fatal(err)
}
case "windows":
// See https://gitlab.com/cznic/sqlite/-/issues/23#note_599920077 for details.
blacklist["symlink2.test"] = struct{}{}
Expand Down

0 comments on commit 62081fe

Please sign in to comment.