mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
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
This commit is contained in:
parent
521e21814c
commit
b786780000
164 changed files with 237 additions and 493 deletions
|
@ -1,5 +1,6 @@
|
|||
/* -*- 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)
|
||||
* can commit properly.
|
||||
* Four Tests:
|
||||
|
@ -9,10 +10,8 @@
|
|||
* big child commits, parent commits
|
||||
*/
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
int N = 50000;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* -*- 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)
|
||||
* can commit properly.
|
||||
* Four Tests:
|
||||
|
@ -9,10 +10,8 @@
|
|||
* big child commits, parent commits
|
||||
*/
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
int N = 50000;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* -*- 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)
|
||||
* can commit properly.
|
||||
* Four Tests:
|
||||
|
@ -9,10 +10,8 @@
|
|||
* big child commits, parent commits
|
||||
*/
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
int N = 50000;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* -*- 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)
|
||||
* can commit properly.
|
||||
* Four Tests:
|
||||
|
@ -9,10 +10,8 @@
|
|||
* big child commits, parent commits (This test)
|
||||
*/
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB *db;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
/* See #627. */
|
||||
|
||||
#include "test.h"
|
||||
#include <sys/stat.h>
|
||||
#include <memory.h>
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB *db;
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB *db;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/* -*- 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.
|
||||
#include <assert.h>
|
||||
#include <pthread.h>
|
||||
#include "test.h"
|
||||
int x;
|
||||
|
||||
void *starta(void* ignore __attribute__((__unused__))) {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* -*- 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.
|
||||
#include <arpa/inet.h>
|
||||
#include <assert.h>
|
||||
|
@ -8,7 +9,6 @@
|
|||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include "test.h"
|
||||
|
||||
DB_ENV *env;
|
||||
DB *db;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* -*- 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.
|
||||
#include <arpa/inet.h>
|
||||
#include <assert.h>
|
||||
|
@ -8,7 +9,6 @@
|
|||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include "test.h"
|
||||
|
||||
DB_ENV *env;
|
||||
DB *db;
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB_TXN *txn = 0;
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB_TXN *txn = 0;
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB_TXN *txn = 0;
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB_TXN *txn = 0;
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/* -*- 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? */
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
#define NFILES 1000
|
||||
#define NINSERTS_PER 1000
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* -*- 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)
|
||||
* can commit properly.
|
||||
* Four Tests:
|
||||
|
@ -9,10 +10,8 @@
|
|||
* big child commits, parent commits (This test)
|
||||
*/
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB *db;
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
/* -*- 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. */
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void test (void) {
|
||||
int r;
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
/* -*- 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. */
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void test (void) {
|
||||
int r;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* -*- 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.
|
||||
// Create a file (foo.db) in a transaction and commit.
|
||||
// Insert some random key-value pairs in a transaciton an dcommit.
|
||||
|
@ -7,14 +8,12 @@
|
|||
// run recovery.
|
||||
// Verify that the data is present.
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void test (void) {
|
||||
int r;
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
#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 <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
unsigned char N=5;
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
DB_ENV *env;
|
||||
DB *db;
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
unsigned char N=5;
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
unsigned char N=8;
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
unsigned char N=8;
|
||||
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
/* -*- 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 <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <memory.h>
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
test_789(void) {
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
/* -*- 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 <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <memory.h>
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
testit (const int klen, const int vlen, const int n, const int lastvlen) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
/* Simple test of logging. Can I start a TokuDB with logging enabled? */
|
||||
#include <assert.h>
|
||||
|
@ -8,12 +8,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <memory.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
/* -*- 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)
|
||||
* Then perform a transaction that overwrites some of those internal things.
|
||||
* Then abort the transaction.
|
||||
* Make sure those middle things made it back into the tree.
|
||||
*/
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB *db;
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
/* -*- 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
|
||||
*/
|
||||
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB *db;
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#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.
|
||||
* Also the last.
|
||||
* 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 <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB *db;
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
/* -*- 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. */
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
/* -*- 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. */
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include <memory.h>
|
||||
#include "test.h"
|
||||
|
||||
int
|
||||
test_main (int argc, const char *argv[]) {
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
/* -*- 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. */
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
int
|
||||
test_main (int argc, const char *argv[]) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -9,10 +9,8 @@
|
|||
#include <memory.h>
|
||||
#include <inttypes.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static u_int64_t
|
||||
size_from (u_int32_t gbytes, u_int32_t bytes) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -9,10 +9,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
test_cursor (void) {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* -*- 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.
|
||||
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -11,10 +11,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
verify_distinct_pointers (void **ptrs, int n) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -9,10 +9,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static DBC* cursor = NULL;
|
||||
static DB* db = NULL;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,11 +8,9 @@
|
|||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <memory.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
db_put (DB *db, int k, int v) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -9,10 +9,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
cursor_expect (DBC *cursor, int k, int v, int op) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007,2008 Tokutek Inc. All rights reserved."
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -9,10 +9,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *dbenv;
|
||||
static DB *db;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007,2008 Tokutek Inc. All rights reserved."
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -9,10 +9,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *dbenv;
|
||||
static DB *db;
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <memory.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -9,10 +9,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
test_cursor_flags (int cursor_flags, int expectr) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
expect_cursor_get (DBC *cursor, int k, int v, int op) {
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <memory.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
|
||||
static void
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
|
||||
#include "test.h"
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* -*- 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. */
|
||||
|
||||
#include <assert.h>
|
||||
|
@ -8,9 +9,7 @@
|
|||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <toku_portability.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
enum mode {
|
||||
MODE_DEFAULT, MODE_DB_CREATE, MODE_MORE
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
/* Can I close a db without opening it? */
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
/* DB_CURRENT */
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/* -*- 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. */
|
||||
|
||||
#include <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <errno.h>
|
||||
#include <memory.h>
|
||||
|
@ -11,7 +11,6 @@
|
|||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static int oppass,opnum;
|
||||
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
/* -*- 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. */
|
||||
|
||||
#include <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <errno.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static enum mode {
|
||||
MODE_DEFAULT, MODE_MORE
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <memory.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <memory.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <memory.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -9,10 +9,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
#ifdef USE_TDB
|
||||
enum {INFLATE=128};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -9,10 +9,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <memory.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
/* -*- 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 <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
int
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
|
||||
#include "test.h"
|
||||
|
||||
|
||||
// make stdlib define unsetenv()
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
|
@ -13,7 +12,6 @@
|
|||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
|
||||
#include "test.h"
|
||||
|
||||
|
||||
// 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 and we do DB_CREATE: it should work.
|
||||
|
@ -12,7 +11,6 @@
|
|||
// One must actually create a DB I think...
|
||||
|
||||
#include <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
/* -*- 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 <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
/* -*- 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 <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <errno.h>
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
/* -*- 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 <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
/* -*- 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 <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
/* -*- 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 <assert.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#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? */
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <memory.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
int
|
||||
test_main (int UU(argc), const char UU(*argv[])) {
|
||||
|
|
|
@ -1,16 +1,14 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
/* Simple test of logging. Can I start a TokuDB with logging enabled? */
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#include <toku_portability.h>
|
||||
#include <fcntl.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
#include <fcntl.h>
|
||||
|
||||
DB_ENV * const null_env = 0;
|
||||
DB *db1, *db2;
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
/* Does removing a database free the DB structure's memory? */
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <memory.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,17 +1,15 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#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) */
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <memory.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <memory.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -9,10 +9,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
test_db_set_flags (int flags, int expectr, int flags2, int expectr2) {
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
|
||||
#include "test.h"
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
|
||||
#include "test.h"
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <memory.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
struct heavi_extra {
|
||||
DBT key;
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <memory.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
// ENVDIR is defined in the Makefile
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
/* -*- mode: C; c-basic-offset: 4 -*- */
|
||||
#include <toku_portability.h>
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
#include "test.h"
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
int
|
||||
test_main (int argc, const char *argv[]) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
db_put (DB *db, int k, int v) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,11 +8,9 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
int errors;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
/* verify that the dup flags are written and read from the database file correctly */
|
||||
static void
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
db_put (DB *db, int k, int v) {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
/* -*- 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 */
|
||||
|
||||
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -11,10 +11,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static int testlevel = 0;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
/* -*- 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.
|
||||
* The issue is that things might look OK before the commit, but bad after the commit.
|
||||
*/
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB *db;
|
||||
|
|
|
@ -1,15 +1,14 @@
|
|||
/* -*- 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.
|
||||
* 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
|
||||
* test_dupsort_del.c notices that the wrong thing is being saved.
|
||||
*/
|
||||
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <sys/stat.h>
|
||||
#include "test.h"
|
||||
|
||||
static DB_ENV *env;
|
||||
static DB *db;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
db_put (DB *db, int k, int v) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
db_put (DB *db, int k, int v) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
db_put (DB *db, int k, int v) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
db_put (DB *db, int k, int v) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -8,10 +8,8 @@
|
|||
#include <unistd.h>
|
||||
#include <memory.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
#ifndef DB_DELETE_ANY
|
||||
#define DB_DELETE_ANY 0
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
/* -*- 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 <toku_portability.h>
|
||||
#include <db.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
int
|
||||
test_main (int UU(argc), const char UU(*argv[])) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* -*- 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 <stdlib.h>
|
||||
|
@ -9,10 +9,8 @@
|
|||
#include <memory.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <toku_portability.h>
|
||||
#include <db.h>
|
||||
|
||||
#include "test.h"
|
||||
|
||||
static void
|
||||
test_env_open_flags (int env_open_flags, int expectr) {
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/* -*- 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 <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include "test.h"
|
||||
|
||||
char const* expect_errpfx;
|
||||
int n_handle_error=0;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
/* -*- 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 <assert.h>
|
||||
|
||||
#include "test.h"
|
||||
#include <toku_pthread.h>
|
||||
|
||||
static void *
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue