Susumu Yata
null+****@clear*****
Thu Sep 14 14:13:35 JST 2017
Susumu Yata 2017-09-14 14:13:35 +0900 (Thu, 14 Sep 2017) New Revision: 92f595d8ceac274f8c865bf06a81e1dfbb5fc255 https://github.com/groonga/grnci/commit/92f595d8ceac274f8c865bf06a81e1dfbb5fc255 Message: Add tests for DB.DatabaseUnmap. Ref: #39 Modified files: v2/libgrn/db_test.go Modified: v2/libgrn/db_test.go (+16 -0) =================================================================== --- v2/libgrn/db_test.go 2017-09-14 14:13:11 +0900 (ae3f35c) +++ v2/libgrn/db_test.go 2017-09-14 14:13:35 +0900 (53ec239) @@ -240,6 +240,22 @@ func TestDBConfigSetOverwrite(t *testing.T) { } } +func TestDBDatabaseUnmap(t *testing.T) { + db, dir := makeDB(t) + defer removeDB(db, dir) + + n, err := db.ThreadLimit(1) + if err != nil { + t.Fatalf("db.ThreadLimit failed: %v", err) + } + if n == 0 { + t.Skipf("This client does not support thread_limit") + } + if err := db.DatabaseUnmap(); err != nil { + t.Fatalf("db.DatabaseUnmap failed: %v", err) + } +} + func TestDBDump(t *testing.T) { db, dir := makeDB(t) defer removeDB(db, dir) -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20170914/af52533c/attachment-0001.htm