From 2f4ba1c5331c044ed8c2743b791d5bedf0efa54b Mon Sep 17 00:00:00 2001 From: Ken Sedgwick Date: Fri, 21 Aug 2015 14:44:13 -0700 Subject: solaris: fix issues with mmap, munmap, madvise and flock --- db_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'db_test.go') diff --git a/db_test.go b/db_test.go index dddf22b..ae21938 100644 --- a/db_test.go +++ b/db_test.go @@ -42,6 +42,9 @@ func TestOpen_Timeout(t *testing.T) { if runtime.GOOS == "windows" { t.Skip("timeout not supported on windows") } + if runtime.GOOS == "solaris" { + t.Skip("solaris fcntl locks don't support intra-process locking") + } path := tempfile() defer os.Remove(path) @@ -66,6 +69,9 @@ func TestOpen_Wait(t *testing.T) { if runtime.GOOS == "windows" { t.Skip("timeout not supported on windows") } + if runtime.GOOS == "solaris" { + t.Skip("solaris fcntl locks don't support intra-process locking") + } path := tempfile() defer os.Remove(path) @@ -228,6 +234,10 @@ func TestDB_Open_FileTooSmall(t *testing.T) { // and that a database can not be opened in read-write mode and in read-only // mode at the same time. func TestOpen_ReadOnly(t *testing.T) { + if runtime.GOOS == "solaris" { + t.Skip("solaris fcntl locks don't support intra-process locking") + } + bucket, key, value := []byte(`bucket`), []byte(`key`), []byte(`value`) path := tempfile() -- cgit v1.2.3