toku_portability.h is now the first header include for all ydb test files.
Also added modelines where missing.

git-svn-id: file:///svn/toku/tokudb@8689 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Yoni Fogel 2013-04-16 23:57:37 -04:00
parent 5bd0a17aa9
commit 637f0bdcb2
163 changed files with 213 additions and 0 deletions

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Test to see if a big nested transaction (so big that it's rollbacks spill into a file)
* can commit properly.
* Four Tests:

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Test to see if a big nested transaction (so big that it's rollbacks spill into a file)
* can commit properly.
* Four Tests:

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Test to see if a big nested transaction (so big that it's rollbacks spill into a file)
* can commit properly.
* Four Tests:

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Test to see if a big nested transaction (so big that it's rollbacks spill into a file)
* can commit properly.
* Four Tests:

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* See #627. */
#include "test.h"

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.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>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
// The helgrind2 test performs a DB->get() in two different concurrent threads.
#include <arpa/inet.h>
#include <assert.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
// The helgrind2 test performs a DB->get() in two different concurrent threads.
#include <arpa/inet.h>
#include <assert.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
#include <assert.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
#include <assert.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
#include <assert.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
#include <assert.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* How fast can we do insertions when there are many files? */
#include <toku_portability.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.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:

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* A simple case to see if recovery works. */
#include <toku_portability.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* A simple case to see if recovery works. */
#include <toku_portability.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.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.

View file

@ -1,5 +1,6 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
#include "test.h"

View file

@ -1,5 +1,6 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
#include "test.h"

View file

@ -1,5 +1,6 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
#include "test.h"

View file

@ -1,5 +1,6 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
#include "test.h"

View file

@ -1,5 +1,6 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
/* Simple test of logging. Can I start a TokuDB with logging enabled? */

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.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.

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Try to exercise all the cases for the leafcommands in brt.c
*/

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
/* Test what happens if we have deleted the first thing in the database.

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Test log archive. */
#include <toku_portability.h>
#include <db.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Test log archive. */
#include <toku_portability.h>
#include <db.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Test log archive. */
#include <toku_portability.h>
#include <db.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
// Verify that different cursors return different data items when DBT is given no flags.
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007,2008 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007,2008 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Primary with two associated things. */
#include <assert.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
/* Can I close a db without opening it? */

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
/* DB_CURRENT */

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Primary with two associated things. */
#include <assert.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Primary with two associated things. */
#include <assert.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
/* Do I return EINVAL when passing in NULL for something that would otherwise be strdup'd? */

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <assert.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
/* Simple test of logging. Can I start a TokuDB with logging enabled? */

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <fcntl.h>
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
/* Does removing a database free the DB structure's memory? */

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
/* Does removing subdatabases corrupt the db file/other dbs in that file? (when nothing else open) */

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <toku_portability.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* test the cursor DB_NEXT_DUP operation */
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.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.
*/

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.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

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <assert.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <assert.h>
#include <sys/stat.h>
#include <errno.h>

View file

@ -1,3 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <stdio.h>
#include <assert.h>

View file

@ -1,4 +1,5 @@
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>

Some files were not shown because too many files have changed in this diff Show more