diff options
author | Ken Sedgwick <ken@bonsai.com> | 2015-08-21 14:44:13 -0700 |
---|---|---|
committer | Ken Sedgwick <ken@bonsai.com> | 2015-08-21 14:44:13 -0700 |
commit | 2f4ba1c5331c044ed8c2743b791d5bedf0efa54b (patch) | |
tree | 3618ac037610f5f9aebb9686ec55e9aa1bf4d50d /db_test.go | |
parent | Merge pull request #405 from artyom/bolt-command-prints-fix (diff) | |
download | dedo-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.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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() |