Commit efedfcbf authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1032, #1343

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
parent 1d405099
/* -*- 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:
......
/* -*- 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:
......
/* -*- 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:
......
/* -*- 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:
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* See #627. */
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
......
/* -*- 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>
......
/* -*- 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>
......
/* -*- 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>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
#include <assert.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
#include <assert.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
#include <assert.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2008 Tokutek Inc. All rights reserved."
#include <assert.h>
......
/* -*- 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>
......
/* -*- 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:
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* A simple case to see if recovery works. */
#include <toku_portability.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* A simple case to see if recovery works. */
#include <toku_portability.h>
......
/* -*- 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.
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <db.h>
#include <sys/stat.h>
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
......
/* -*- 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? */
......
/* -*- 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.
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Try to exercise all the cases for the leafcommands in brt.c
*/
......
/* -*- 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.
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Test log archive. */
#include <toku_portability.h>
#include <db.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Test log archive. */
#include <toku_portability.h>
#include <db.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Test log archive. */
#include <toku_portability.h>
#include <db.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- 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."
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007,2008 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007,2008 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Primary with two associated things. */
#include <assert.h>
......
/* -*- 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? */
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
/* DB_CURRENT */
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Primary with two associated things. */
#include <assert.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
/* Primary with two associated things. */
#include <assert.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
......
/* -*- 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? */
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <assert.h>
......
/* -*- 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? */
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <toku_portability.h>
#include <fcntl.h>
#include "test.h"
......
/* -*- 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? */
......
/* -*- 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) */
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <memory.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <toku_portability.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- 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."
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- 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.
*/
......
/* -*- 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
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include "test.h"
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <assert.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <assert.h>
#include <sys/stat.h>
#include <errno.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#include <stdio.h>
#include <assert.h>
......
/* -*- mode: C; c-basic-offset: 4 -*- */
#include <toku_portability.h>
#ident "Copyright (c) 2007 Tokutek Inc. All rights reserved."
#include <stdio.h>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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