Commit bef2a4c0 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1032, #1343

All src/tests now have the following first 3 lines:
1- Modeline
2- Ident
3- include test.h
(test.h includes toku_portability.h immediately after modeline and ident)

Only one include for test.h, and no (direct) includes for toku_portability.h

git-svn-id: file:///svn/toku/tokudb@8713 c7de825b-a66e-492c-adef-691d508d4ae1
parent 306c1155
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test to see if a big nested transaction (so big that it's rollbacks spill into a file) /* Test to see if a big nested transaction (so big that it's rollbacks spill into a file)
* can commit properly. * can commit properly.
* Four Tests: * Four Tests:
...@@ -9,10 +10,8 @@ ...@@ -9,10 +10,8 @@
* big child commits, parent commits * big child commits, parent commits
*/ */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
int N = 50000; int N = 50000;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test to see if a big nested transaction (so big that it's rollbacks spill into a file) /* Test to see if a big nested transaction (so big that it's rollbacks spill into a file)
* can commit properly. * can commit properly.
* Four Tests: * Four Tests:
...@@ -9,10 +10,8 @@ ...@@ -9,10 +10,8 @@
* big child commits, parent commits * big child commits, parent commits
*/ */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
int N = 50000; int N = 50000;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test to see if a big nested transaction (so big that it's rollbacks spill into a file) /* Test to see if a big nested transaction (so big that it's rollbacks spill into a file)
* can commit properly. * can commit properly.
* Four Tests: * Four Tests:
...@@ -9,10 +10,8 @@ ...@@ -9,10 +10,8 @@
* big child commits, parent commits * big child commits, parent commits
*/ */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
int N = 50000; int N = 50000;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test to see if a big nested transaction (so big that it's rollbacks spill into a file) /* Test to see if a big nested transaction (so big that it's rollbacks spill into a file)
* can commit properly. * can commit properly.
* Four Tests: * Four Tests:
...@@ -9,10 +10,8 @@ ...@@ -9,10 +10,8 @@
* big child commits, parent commits (This test) * big child commits, parent commits (This test)
*/ */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* See #627. */ /* See #627. */
#include "test.h"
#include <sys/stat.h> #include <sys/stat.h>
#include <memory.h> #include <memory.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <toku_portability.h> #include "test.h"
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <toku_portability.h> #include "test.h"
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// The helgrind1.tdbrun test should fail. This is merely a check to verify that helgrind actually notices a race. // The helgrind1.tdbrun test should fail. This is merely a check to verify that helgrind actually notices a race.
#include <assert.h> #include <assert.h>
#include <pthread.h> #include <pthread.h>
#include "test.h"
int x; int x;
void *starta(void* ignore __attribute__((__unused__))) { void *starta(void* ignore __attribute__((__unused__))) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// The helgrind2 test performs a DB->get() in two different concurrent threads. // The helgrind2 test performs a DB->get() in two different concurrent threads.
#include <arpa/inet.h> #include <arpa/inet.h>
#include <assert.h> #include <assert.h>
...@@ -8,7 +9,6 @@ ...@@ -8,7 +9,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include "test.h"
DB_ENV *env; DB_ENV *env;
DB *db; DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// The helgrind2 test performs a DB->get() in two different concurrent threads. // The helgrind2 test performs a DB->get() in two different concurrent threads.
#include <arpa/inet.h> #include <arpa/inet.h>
#include <assert.h> #include <assert.h>
...@@ -8,7 +9,6 @@ ...@@ -8,7 +9,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include "test.h"
DB_ENV *env; DB_ENV *env;
DB *db; DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved." #include "test.h"
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB_TXN *txn = 0; static DB_TXN *txn = 0;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved." #include "test.h"
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB_TXN *txn = 0; static DB_TXN *txn = 0;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved." #include "test.h"
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB_TXN *txn = 0; static DB_TXN *txn = 0;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved." #include "test.h"
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB_TXN *txn = 0; static DB_TXN *txn = 0;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* How fast can we do insertions when there are many files? */ /* How fast can we do insertions when there are many files? */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
#define NFILES 1000 #define NFILES 1000
#define NINSERTS_PER 1000 #define NINSERTS_PER 1000
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test to see if a medium-size nested transaction (the nested pieces are not too big, but the whole thing is so big that it's rollbacks spill into a file) /* Test to see if a medium-size nested transaction (the nested pieces are not too big, but the whole thing is so big that it's rollbacks spill into a file)
* can commit properly. * can commit properly.
* Four Tests: * Four Tests:
...@@ -9,10 +10,8 @@ ...@@ -9,10 +10,8 @@
* big child commits, parent commits (This test) * big child commits, parent commits (This test)
*/ */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* A simple case to see if recovery works. */ /* A simple case to see if recovery works. */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include "test.h"
static void test (void) { static void test (void) {
int r; int r;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* A simple case to see if recovery works. */ /* A simple case to see if recovery works. */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include "test.h"
static void test (void) { static void test (void) {
int r; int r;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// A simple case to see if recovery works. // A simple case to see if recovery works.
// Create a file (foo.db) in a transaction and commit. // Create a file (foo.db) in a transaction and commit.
// Insert some random key-value pairs in a transaciton an dcommit. // Insert some random key-value pairs in a transaciton an dcommit.
...@@ -7,14 +8,12 @@ ...@@ -7,14 +8,12 @@
// run recovery. // run recovery.
// Verify that the data is present. // Verify that the data is present.
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include "test.h"
static void test (void) { static void test (void) {
int r; int r;
......
#include "toku_portability.h" /* -*- mode: C; c-basic-offset: 4 -*- */
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <toku_portability.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <toku_portability.h> #include "test.h"
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
unsigned char N=5; unsigned char N=5;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <toku_portability.h> #include "test.h"
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
DB_ENV *env; DB_ENV *env;
DB *db; DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <toku_portability.h> #include "test.h"
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
unsigned char N=5; unsigned char N=5;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <toku_portability.h> #include "test.h"
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
unsigned char N=8; unsigned char N=8;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <toku_portability.h> #include "test.h"
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
unsigned char N=8; unsigned char N=8;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <memory.h> #include <memory.h>
#include "test.h"
static void static void
test_789(void) { test_789(void) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <memory.h> #include <memory.h>
#include "test.h"
static void static void
testit (const int klen, const int vlen, const int n, const int lastvlen) { testit (const int klen, const int vlen, const int n, const int lastvlen) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Simple test of logging. Can I start a TokuDB with logging enabled? */ /* Simple test of logging. Can I start a TokuDB with logging enabled? */
#include <assert.h> #include <assert.h>
...@@ -8,12 +8,10 @@ ...@@ -8,12 +8,10 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <memory.h> #include <memory.h>
#include <stdio.h> #include <stdio.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Put some insert messages into an internal buffer (by first creating a DB, filling it up, then closing it, and reopening, and inserting a few things) /* Put some insert messages into an internal buffer (by first creating a DB, filling it up, then closing it, and reopening, and inserting a few things)
* Then perform a transaction that overwrites some of those internal things. * Then perform a transaction that overwrites some of those internal things.
* Then abort the transaction. * Then abort the transaction.
* Make sure those middle things made it back into the tree. * Make sure those middle things made it back into the tree.
*/ */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Try to exercise all the cases for the leafcommands in brt.c /* Try to exercise all the cases for the leafcommands in brt.c
*/ */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test what happens if we have deleted the first thing in the database. /* Test what happens if we have deleted the first thing in the database.
* Also the last. * Also the last.
* Also if we've deleted a lot of stuff, so that the first good thing is not on the first page. * Also if we've deleted a lot of stuff, so that the first good thing is not on the first page.
*/ */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test log archive. */ /* Test log archive. */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test log archive. */ /* Test log archive. */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <memory.h> #include <memory.h>
#include "test.h"
int int
test_main (int argc, const char *argv[]) { test_main (int argc, const char *argv[]) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test log archive. */ /* Test log archive. */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
int int
test_main (int argc, const char *argv[]) { test_main (int argc, const char *argv[]) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <inttypes.h> #include <inttypes.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static u_int64_t static u_int64_t
size_from (u_int32_t gbytes, u_int32_t bytes) { size_from (u_int32_t gbytes, u_int32_t bytes) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_cursor (void) { test_cursor (void) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// Verify that different cursors return different data items when DBT is given no flags. // Verify that different cursors return different data items when DBT is given no flags.
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -11,10 +11,8 @@ ...@@ -11,10 +11,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
verify_distinct_pointers (void **ptrs, int n) { verify_distinct_pointers (void **ptrs, int n) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static DBC* cursor = NULL; static DBC* cursor = NULL;
static DB* db = NULL; static DB* db = NULL;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,11 +8,9 @@ ...@@ -8,11 +8,9 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <memory.h> #include <memory.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
db_put (DB *db, int k, int v) { db_put (DB *db, int k, int v) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
cursor_expect (DBC *cursor, int k, int v, int op) { cursor_expect (DBC *cursor, int k, int v, int op) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#ident "Copyright (c) 2007,2008 Tokutek Inc. All rights reserved." #include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static DB_ENV *dbenv; static DB_ENV *dbenv;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#ident "Copyright (c) 2007,2008 Tokutek Inc. All rights reserved." #include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static DB_ENV *dbenv; static DB_ENV *dbenv;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_cursor_flags (int cursor_flags, int expectr) { test_cursor_flags (int cursor_flags, int expectr) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
expect_cursor_get (DBC *cursor, int k, int v, int op) { expect_cursor_get (DBC *cursor, int k, int v, int op) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <unistd.h> #include <unistd.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <errno.h> #include <errno.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Primary with two associated things. */ /* Primary with two associated things. */
#include <assert.h> #include <assert.h>
...@@ -8,9 +9,7 @@ ...@@ -8,9 +9,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include "test.h"
enum mode { enum mode {
MODE_DEFAULT, MODE_DB_CREATE, MODE_MORE MODE_DEFAULT, MODE_DB_CREATE, MODE_MORE
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Can I close a db without opening it? */ /* Can I close a db without opening it? */
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* DB_CURRENT */ /* DB_CURRENT */
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Primary with two associated things. */ /* Primary with two associated things. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <errno.h> #include <errno.h>
#include <memory.h> #include <memory.h>
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#include <unistd.h> #include <unistd.h>
#include <ctype.h> #include <ctype.h>
#include "test.h"
static int oppass,opnum; static int oppass,opnum;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Primary with two associated things. */ /* Primary with two associated things. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <errno.h> #include <errno.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include "test.h"
static enum mode { static enum mode {
MODE_DEFAULT, MODE_MORE MODE_DEFAULT, MODE_MORE
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
#ifdef USE_TDB #ifdef USE_TDB
enum {INFLATE=128}; enum {INFLATE=128};
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
int int
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
// make stdlib define unsetenv() // make stdlib define unsetenv()
#ifndef _GNU_SOURCE #ifndef _GNU_SOURCE
#define _GNU_SOURCE #define _GNU_SOURCE
...@@ -13,7 +12,6 @@ ...@@ -13,7 +12,6 @@
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
// Try to open an environment where the directory does not exist // Try to open an environment where the directory does not exist
// Try when the dir exists but is not an initialized env // Try when the dir exists but is not an initialized env
// Try when the dir exists and we do DB_CREATE: it should work. // Try when the dir exists and we do DB_CREATE: it should work.
...@@ -12,7 +11,6 @@ ...@@ -12,7 +11,6 @@
// One must actually create a DB I think... // One must actually create a DB I think...
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <errno.h> #include <errno.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Do I return EINVAL when passing in NULL for something that would otherwise be strdup'd? */ /* Do I return EINVAL when passing in NULL for something that would otherwise be strdup'd? */
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
int int
test_main (int UU(argc), const char UU(*argv[])) { test_main (int UU(argc), const char UU(*argv[])) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Simple test of logging. Can I start a TokuDB with logging enabled? */ /* Simple test of logging. Can I start a TokuDB with logging enabled? */
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <toku_portability.h>
#include <fcntl.h>
#include "test.h" #include "test.h"
#include <fcntl.h>
DB_ENV * const null_env = 0; DB_ENV * const null_env = 0;
DB *db1, *db2; DB *db1, *db2;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Does removing a database free the DB structure's memory? */ /* Does removing a database free the DB structure's memory? */
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <memory.h> #include <memory.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Does removing subdatabases corrupt the db file/other dbs in that file? (when nothing else open) */ /* Does removing subdatabases corrupt the db file/other dbs in that file? (when nothing else open) */
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <memory.h> #include <memory.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_db_set_flags (int flags, int expectr, int flags2, int expectr2) { test_db_set_flags (int flags, int expectr, int flags2, int expectr2) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <unistd.h> #include <unistd.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <unistd.h> #include <unistd.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
struct heavi_extra { struct heavi_extra {
DBT key; DBT key;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include "test.h"
int int
test_main (int argc, const char *argv[]) { test_main (int argc, const char *argv[]) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
db_put (DB *db, int k, int v) { db_put (DB *db, int k, int v) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,11 +8,9 @@ ...@@ -8,11 +8,9 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <errno.h> #include <errno.h>
#include "test.h"
int errors; int errors;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
/* verify that the dup flags are written and read from the database file correctly */ /* verify that the dup flags are written and read from the database file correctly */
static void static void
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
db_put (DB *db, int k, int v) { db_put (DB *db, int k, int v) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* test the cursor DB_NEXT_DUP operation */ /* test the cursor DB_NEXT_DUP operation */
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -11,10 +11,8 @@ ...@@ -11,10 +11,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static int testlevel = 0; static int testlevel = 0;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test to see if delete works right with dupsort. /* Test to see if delete works right with dupsort.
* The issue is that things might look OK before the commit, but bad after the commit. * The issue is that things might look OK before the commit, but bad after the commit.
*/ */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test to see if delete works right with dupsort. /* Test to see if delete works right with dupsort.
* The issue is that things might look OK before the commit, but bad after the commit. * The issue is that things might look OK before the commit, but bad after the commit.
* In #690 we saw corrupted checksum errors. This actually tries to get that error to occur, whereas * In #690 we saw corrupted checksum errors. This actually tries to get that error to occur, whereas
* test_dupsort_del.c notices that the wrong thing is being saved. * test_dupsort_del.c notices that the wrong thing is being saved.
*/ */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
db_put (DB *db, int k, int v) { db_put (DB *db, int k, int v) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
db_put (DB *db, int k, int v) { db_put (DB *db, int k, int v) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
db_put (DB *db, int k, int v) { db_put (DB *db, int k, int v) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
db_put (DB *db, int k, int v) { db_put (DB *db, int k, int v) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
#ifndef DB_DELETE_ANY #ifndef DB_DELETE_ANY
#define DB_DELETE_ANY 0 #define DB_DELETE_ANY 0
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
int int
test_main (int UU(argc), const char UU(*argv[])) { test_main (int UU(argc), const char UU(*argv[])) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_env_open_flags (int env_open_flags, int expectr) { test_env_open_flags (int env_open_flags, int expectr) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <assert.h> #include <assert.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include "test.h"
char const* expect_errpfx; char const* expect_errpfx;
int n_handle_error=0; int n_handle_error=0;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include "test.h"
#include <toku_pthread.h> #include <toku_pthread.h>
static void * static void *
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static DBT * static DBT *
dbt_init_user (DBT *d, void *uptr, int ulen) { dbt_init_user (DBT *d, void *uptr, int ulen) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test to see if DB->get works on a zeroed DBT. */ /* Test to see if DB->get works on a zeroed DBT. */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <memory.h> #include <memory.h>
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static void static void
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test by counting the fsyncs, to see if group commit is working. */ /* Test by counting the fsyncs, to see if group commit is working. */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <toku_pthread.h> #include <toku_pthread.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include "test.h"
DB_ENV *env; DB_ENV *env;
DB *db; DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test using performance metrics only, to see if group commit is working. */ /* Test using performance metrics only, to see if group commit is working. */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <toku_pthread.h> #include <toku_pthread.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
DB_ENV *env; DB_ENV *env;
DB *db; DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
#ifdef USE_BDB #ifdef USE_BDB
#define DB_YESOVERWRITE 0 #define DB_YESOVERWRITE 0
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_insert_delete_insert (int dup_mode) { test_insert_delete_insert (int dup_mode) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_insert (int n, int dup_mode) { test_insert (int n, int dup_mode) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
u_int64_t lorange = 0; u_int64_t lorange = 0;
u_int64_t hirange = 1<<24; u_int64_t hirange = 1<<24;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Simple test of logging. Can I start a TokuDB with logging enabled? */ /* Simple test of logging. Can I start a TokuDB with logging enabled? */
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Simple test of logging. Can I start a TokuDB with logging enabled? */ /* Simple test of logging. Can I start a TokuDB with logging enabled? */
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <memory.h> #include <memory.h>
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Test to see if we can do logging and recovery. */ /* Test to see if we can do logging and recovery. */
/* This is very specific to TokuDB. It won't work with Berkeley DB. */ /* This is very specific to TokuDB. It won't work with Berkeley DB. */
/* This test_log10 inserts to a db, closes, reopens, and inserts more to db. We want to make sure that the recovery of the buffers works. */ /* This test_log10 inserts to a db, closes, reopens, and inserts more to db. We want to make sure that the recovery of the buffers works. */
/* Lots of stuff gets inserted. */ /* Lots of stuff gets inserted. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Do test_log1, except abort instead of commit. */ /* Do test_log1, except abort instead of commit. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
...@@ -14,7 +13,6 @@ ...@@ -14,7 +13,6 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Test to see if we can do logging and recovery. */ /* Test to see if we can do logging and recovery. */
/* This is very specific to TokuDB. It won't work with Berkeley DB. */ /* This is very specific to TokuDB. It won't work with Berkeley DB. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Like test_log2 except abort. */ /* Like test_log2 except abort. */
/* This is very specific to TokuDB. It won't work with Berkeley DB. */ /* This is very specific to TokuDB. It won't work with Berkeley DB. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Test to see if we can do logging and recovery. */ /* Test to see if we can do logging and recovery. */
/* This is very specific to TokuDB. It won't work with Berkeley DB. */ /* This is very specific to TokuDB. It won't work with Berkeley DB. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Like test_log3 except do abort */ /* Like test_log3 except do abort */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Test to see if we can do logging and recovery. */ /* Test to see if we can do logging and recovery. */
/* This is very specific to TokuDB. It won't work with Berkeley DB. */ /* This is very specific to TokuDB. It won't work with Berkeley DB. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Like test_log4, except abort */ /* Like test_log4, except abort */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Test to see if we can do logging and recovery. */ /* Test to see if we can do logging and recovery. */
/* This is very specific to TokuDB. It won't work with Berkeley DB. */ /* This is very specific to TokuDB. It won't work with Berkeley DB. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Like test_log5 except abort. */ /* Like test_log5 except abort. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Test to see if we can do logging and recovery. */ /* Test to see if we can do logging and recovery. */
/* This is very specific to TokuDB. It won't work with Berkeley DB. */ /* This is very specific to TokuDB. It won't work with Berkeley DB. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Like test_log6 except abort. */ /* Like test_log6 except abort. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Like test_log6 except abort. /* Like test_log6 except abort.
* And abort some stuff, but not others (unlike test_log6_abort which aborts everything) */ * And abort some stuff, but not others (unlike test_log6_abort which aborts everything) */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <search.h> #include <search.h>
...@@ -14,7 +13,6 @@ ...@@ -14,7 +13,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <memory.h> #include <memory.h>
#include "test.h"
#ifndef DB_DELETE_ANY #ifndef DB_DELETE_ANY
#define DB_DELETE_ANY 0 #define DB_DELETE_ANY 0
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Test to see if we can do logging and recovery. */ /* Test to see if we can do logging and recovery. */
/* This is very specific to TokuDB. It won't work with Berkeley DB. */ /* This is very specific to TokuDB. It won't work with Berkeley DB. */
/* This test_log7 is like test_log5 except maxcount is larger. */ /* This test_log7 is like test_log5 except maxcount is larger. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Test to see if we can do logging and recovery. */ /* Test to see if we can do logging and recovery. */
/* This is very specific to TokuDB. It won't work with Berkeley DB. */ /* This is very specific to TokuDB. It won't work with Berkeley DB. */
/* This test_log8 inserts to a db, closes, reopens, and inserts more to db. We want to make sure that the recovery of the buffers works. */ /* This test_log8 inserts to a db, closes, reopens, and inserts more to db. We want to make sure that the recovery of the buffers works. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h" #include "test.h"
/* Test to see if we can do logging and recovery. */ /* Test to see if we can do logging and recovery. */
/* This is very specific to TokuDB. It won't work with Berkeley DB. */ /* This is very specific to TokuDB. It won't work with Berkeley DB. */
/* This test_log8 inserts to a db, closes, reopens, and inserts more to db. We want to make sure that the recovery of the buffers works. */ /* This test_log8 inserts to a db, closes, reopens, and inserts more to db. We want to make sure that the recovery of the buffers works. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/mman.h> #include <sys/mman.h>
#include "test.h"
// Return the offset // Return the offset
static int static int
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <dirent.h> #include <dirent.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static void static void
check_logmax (int max) { check_logmax (int max) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <time.h> #include <time.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
seqinsert (int n, float p) { seqinsert (int n, float p) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Nested transactions. */ /* Nested transactions. */
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static DB_ENV *env; static DB_ENV *env;
static DB *db; static DB *db;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_rand_insert (int n, int dup_mode) { test_rand_insert (int n, int dup_mode) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* try a reverse compare function to verify that the database always uses the application's /* try a reverse compare function to verify that the database always uses the application's
compare function */ compare function */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -15,7 +14,6 @@ ...@@ -15,7 +14,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include "test.h"
static int static int
keycompare (const void *key1, unsigned int key1len, const void *key2, unsigned int key2len) { keycompare (const void *key1, unsigned int key1len, const void *key2, unsigned int key2len) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#define DONT_DEPRECATE_MALLOC #define DONT_DEPRECATE_MALLOC
#include <toku_portability.h> #include "test.h"
/* Test to see if setting malloc works, and if dlmalloc works. */ /* Test to see if setting malloc works, and if dlmalloc works. */
#include <toku_portability.h>
#include <memory.h> #include <memory.h>
#include <db.h> #include <db.h>
#ifdef USE_TDB #ifdef USE_TDB
#include <dlmalloc.h> #include <dlmalloc.h>
#endif #endif
#include "test.h"
static int malloc_counter=0; static int malloc_counter=0;
static int realloc_counter=0; static int realloc_counter=0;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Test to see if the set_lk_max_locks works. */ /* Test to see if the set_lk_max_locks works. */
/* This is very specific to TokuDB. It won't work with Berkeley DB. */ /* This is very specific to TokuDB. It won't work with Berkeley DB. */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <memory.h> #include <memory.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <memory.h> #include <memory.h>
#include "test.h"
const char *dbfile = ENVDIR "/" "test.db"; const char *dbfile = ENVDIR "/" "test.db";
const char *dbname = 0; const char *dbname = 0;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <toku_pthread.h> #include <toku_pthread.h>
#include "test.h"
static inline unsigned int getmyid() { static inline unsigned int getmyid() {
return toku_os_gettid(); return toku_os_gettid();
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <memory.h> #include <memory.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
// ENVDIR is defined in the Makefile // ENVDIR is defined in the Makefile
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <toku_pthread.h> #include <toku_pthread.h>
#include "test.h"
typedef unsigned int my_t; typedef unsigned int my_t;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// truncate a database without transactions and verify that // truncate a database without transactions and verify that
// the database is empty after the truncate is performed // the database is empty after the truncate is performed
...@@ -8,9 +9,7 @@ ...@@ -8,9 +9,7 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static int static int
test_truncate (int n) { test_truncate (int n) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// truncate a named database // truncate a named database
// verify that the database is empty // verify that the database is empty
...@@ -8,9 +9,7 @@ ...@@ -8,9 +9,7 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static int static int
test_truncate_subdb (int n) { test_truncate_subdb (int n) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// truncate a database within a transaction // truncate a database within a transaction
// abort the transaction and verify that the database is not empty // abort the transaction and verify that the database is not empty
...@@ -8,9 +9,7 @@ ...@@ -8,9 +9,7 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static int static int
test_truncate_txn_abort (int n) { test_truncate_txn_abort (int n) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// truncate a database within a transaction // truncate a database within a transaction
// commit the transaction and verify that the database is empty // commit the transaction and verify that the database is empty
...@@ -8,9 +9,7 @@ ...@@ -8,9 +9,7 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static int static int
test_truncate_txn_commit (int n) { test_truncate_txn_commit (int n) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// truncate a database within a transaction // truncate a database within a transaction
// begin txn; insert (n,n); truncate; commit // begin txn; insert (n,n); truncate; commit
// verify that the database is empty // verify that the database is empty
...@@ -9,9 +10,7 @@ ...@@ -9,9 +10,7 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static int static int
test_truncate_txn_commit2 (int n) { test_truncate_txn_commit2 (int n) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// truncate a database within a transaction // truncate a database within a transaction
// begin txn; delete 0; truncate; commit // begin txn; delete 0; truncate; commit
// verify that the database is empty // verify that the database is empty
...@@ -9,9 +10,7 @@ ...@@ -9,9 +10,7 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static int static int
test_truncate_txn_commit2 (int n) { test_truncate_txn_commit2 (int n) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
// truncate a database with open cursors // truncate a database with open cursors
// verify that the truncate returns EINVAL // verify that the truncate returns EINVAL
// BDB returns 0 but calls the error callback // BDB returns 0 but calls the error callback
...@@ -9,9 +10,7 @@ ...@@ -9,9 +10,7 @@
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
#ifdef USE_BDB #ifdef USE_BDB
int test_errors = 0; int test_errors = 0;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_txn_abort (int n) { test_txn_abort (int n) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
#define N_TXNS 4 #define N_TXNS 4
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_abort_create (void) { test_abort_create (void) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
// //
static void static void
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
// //
static void static void
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
int int
test_main(int UU(argc), const char UU(*argv[])) { test_main(int UU(argc), const char UU(*argv[])) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
// Recreate a mysqld crash by closing and opening a db within a transaction. // Recreate a mysqld crash by closing and opening a db within a transaction.
// The crash occurs when writing a dirty cachetable pair, so we insert one // The crash occurs when writing a dirty cachetable pair, so we insert one
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
// like test_txn_abort8.c except commit // like test_txn_abort8.c except commit
static void static void
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static int static int
db_put (DB *db, DB_TXN *txn, int k, int v) { db_put (DB *db, DB_TXN *txn, int k, int v) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static int static int
db_put (DB *db, DB_TXN *txn, int k, int v) { db_put (DB *db, DB_TXN *txn, int k, int v) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_txn_abort (void) { test_txn_abort (void) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_txn_abort (void) { test_txn_abort (void) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static DB *db; static DB *db;
static DB_ENV *env; static DB_ENV *env;
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -9,10 +9,8 @@ ...@@ -9,10 +9,8 @@
#include <memory.h> #include <memory.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
test_txn_recover3 (int nrows) { test_txn_recover3 (int nrows) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
static void static void
expect_cursor_get (DBC *cursor, int k, int v, int op) { expect_cursor_get (DBC *cursor, int k, int v, int op) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h> #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
/* Find out about weak transactions. /* Find out about weak transactions.
* User A does a transaction. * User A does a transaction.
* User B does somethign without a transaction, and it conflicts. * User B does somethign without a transaction, and it conflicts.
*/ */
#include <assert.h> #include <assert.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include <stdlib.h> #include <stdlib.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "test.h"
static void static void
test_autotxn (u_int32_t env_flags, u_int32_t db_flags) { test_autotxn (u_int32_t env_flags, u_int32_t db_flags) {
......
/* -*- mode: C; c-basic-offset: 4 -*- */ /* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved." #ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
#include <unistd.h> #include <unistd.h>
#include <memory.h> #include <memory.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <toku_portability.h>
#include <db.h> #include <db.h>
#include "test.h"
#ifndef ENVDIR #ifndef ENVDIR
#define ENVDIR "./test.dir" #define ENVDIR "./test.dir"
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment