aboutsummaryrefslogtreecommitdiff
path: root/db_test.go
diff options
context:
space:
mode:
authorKen Sedgwick <ken@bonsai.com>2015-08-21 14:44:13 -0700
committerKen Sedgwick <ken@bonsai.com>2015-08-21 14:44:13 -0700
commit2f4ba1c5331c044ed8c2743b791d5bedf0efa54b (patch)
tree3618ac037610f5f9aebb9686ec55e9aa1bf4d50d /db_test.go
parentMerge pull request #405 from artyom/bolt-command-prints-fix (diff)
downloaddedo-2f4ba1c5331c044ed8c2743b791d5bedf0efa54b.tar.gz
dedo-2f4ba1c5331c044ed8c2743b791d5bedf0efa54b.tar.xz
solaris: fix issues with mmap, munmap, madvise and flock
Diffstat (limited to 'db_test.go')
-rw-r--r--db_test.go10
1 files changed, 10 insertions, 0 deletions
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()