Commit Graph

87 Commits

Author SHA1 Message Date
Keith Bostic
3c46e62a5f Merge pull request #2571 from wiredtiger/wt-2471
WT-2471: review WiredTiger "int" printf formats
2016-03-11 17:01:14 -05:00
Keith Bostic
cc0d34b093 WT-2471: review WiredTiger "int" printf formats 2016-03-11 16:02:41 -05:00
Keith Bostic
8269d006d9 WT-2467: Coverity 1352894: Logically dead code
Update the mod value to reflect the addition of a new operation.
2016-03-11 10:34:55 -05:00
Keith Bostic
525b9a6f30 WT-2422: multiple definitions of custom die function
Define the custom die function once per program.
2016-02-22 11:03:47 -05:00
Keith Bostic
b2248ba782 Don't create "words" the spellcheck script will complain about. 2016-01-10 10:32:51 -05:00
Keith Bostic
26b4776c27 Change WT_SESSION.rebalance to silently succeed if the tree has
never been written to disk.
Add support for WT_SESSION.rebalance to the fops test program.
2016-01-04 18:35:09 -05:00
Keith Bostic
fba53cac21 Consistently use __wt_yield() in all of the test programs. 2016-01-04 18:30:10 -05:00
Keith Bostic
344a714c3d Upgrade copyright notices from 2015 to 2016. 2016-01-01 16:37:39 -05:00
Alex Gorrod
a981938a59 WT-2184 Updates to the new recovery tests.
Also update the other test makefiles to adhere to the test wrapper
environment variable. That means we don't need a special wrapper
shell script for parameter free test programs in make check.

Comment out the new recovery test from the Windows build file - there
are posix specific API calls in the test.
2015-11-03 16:03:58 +11:00
Michael Cahill
7063f8b6e8 SERVER-19340 Avoid type aliasing in the random number generator. 2015-07-27 12:07:31 +10:00
Keith Bostic
bb986cf409 Avoid read/write races in the PRNG: switch to using an 8B value instead
of a two, 4B value array, declare the value volatile to avoid having the
compiler alter the read/write path.

Add a check if a PRNG component ever goes to zero and reset it.
2015-05-30 11:53:52 -04:00
Michael Cahill
80cc29d353 Add forced drops to test/fops. We have seen failures where a checkpoint interleaves between a bulk load and a forced drop to try to operate on a dead handle.
refs SERVER-18014
2015-05-18 12:08:40 +10:00
David Hows
21148870aa Change to __wt_exists 2015-05-12 13:41:33 +10:00
David Hows
ce5c286f22 Changes for CR 2015-05-11 15:12:43 +10:00
David Hows
d6d57add5e Fix failed tests 2015-05-11 12:45:09 +10:00
David Hows
12b1d56024 Change all testutils functions to return nothing 2015-05-11 12:41:50 +10:00
Keith Bostic
39a120eb03 test/checkpoint is using __wt_random_init/__wt_random, test programs are
using other __wt_XXX functions (for example, __wt_thread_id), several
include wt_internal.h.

Back out chunks of the last commit, instead, change the test programs
to use the WiredTiger library RNG functions, remove RNG functions from
test_util.i.
2015-05-08 13:58:49 -04:00
Keith Bostic
f54f7bf6d2 Pull out the RNG fucnctions into test_util.i.
Don't set the seed values based on the gettimeofday, use standard seeds.

Give every thread its own random number generation so we don't collide
on shared cache lines.
2015-05-08 13:33:47 -04:00
David Hows
29477b0ac5 Add testutils to all tests 2015-05-05 14:51:23 +10:00
Keith Bostic
ea8fbd27a2 test/fops/t.c 199 Warning 534: Ignoring return value of function
'testutil_clean_work_dir
2015-05-04 11:12:14 -04:00
Keith Bostic
3069119e15 external 'home' (line 40, file test/fops/t.c) could be made static 2015-05-04 11:11:04 -04:00
Keith Bostic
29a01f2ed4 test/fops/thread.h 48 Warning 537: Repeated include file './wiredtiger.h' 2015-05-04 11:10:03 -04:00
Alex Gorrod
4eeff5033f Fix GCC 4.1 build warning in test/fops. 2015-05-04 09:53:05 +10:00
David Hows
9925a414cd Code review Changes 2015-05-01 17:29:04 +10:00
David Hows
4be18dd81c Add directory_delimiter function 2015-05-01 12:14:37 +10:00
David Hows
1632d07477 Move utilities to .i and add fixes for Windows 2015-05-01 12:14:37 +10:00
daveh86
10217fd7a7 Change comments and use snprintf 2015-05-01 12:14:36 +10:00
daveh86
b28a3364b0 Remove relative pathing 2015-05-01 12:14:36 +10:00
daveh86
19f7376383 Fix Broken Includes and other minor things 2015-05-01 12:14:36 +10:00
daveh86
16fc16b013 Changes by s_all 2015-05-01 12:14:36 +10:00
daveh86
65255ea496 Create test utilities and modify FOPS test
Test utilities are created to separate the directory creation/cleanup utilities.

These are piloted against the FOPS test
2015-05-01 12:14:36 +10:00
Keith Bostic
47c1267600 Remove core files when cleaning out the directory. 2015-04-10 09:44:19 -04:00
Keith Bostic
8450bc0ef5 Merge branch 'win_test_fops_new' of https://github.com/markbenvenuto/wiredtiger into markbenvenuto-win_test_fops_new 2015-04-08 16:36:50 -04:00
Keith Bostic
8b2c9de55a Remove setvbuf calls to configure line-buffering, setvbuf(_IOLBF) is
not available on Windows. (I simply removed the calls, I don't think
line-buffering is really needed in fops, anyway.)
2015-04-08 16:30:41 -04:00
Mark Benvenuto
7d0e5fe3df Enable test/fops for Windows, and add to CI
- Added Windows shim for gettimeofday
2015-04-08 14:22:10 -04:00
Keith Bostic
1f9098871a Copyright notices: add MongoDB, update to 2015. 2015-01-04 14:07:56 -05:00
Keith Bostic
47a3bd9bdf Add tests for creating bulk and non-bulk items that we know will succeed;
I did this change to test for #1397, but it's a reasonable way to do more
testing in fops.
2014-11-21 21:26:10 -05:00
Keith Bostic
dfca7d5b05 Move the test run into a subdirectory, WT_TEST.
Make it possible to pass additional information to the die functon's fprintf.
2014-11-21 13:41:39 -05:00
Keith Bostic
607b133aa5 gcc doesn't like externs inside functions (warning: nested extern
declaration ofXXX)
2014-10-10 09:02:55 -04:00
Keith Bostic
ee28ec9dda Move the utilities/util_getopt.c implementation of getopt(3) into the
WiredTiger library, and convert all of the utilities and test programs
to use it.
2014-10-10 08:52:55 -04:00
Keith Bostic
c2cb2d418a Simplify gcc.h, don't repeat the GCC atomic builtins, just use one version.
Break hardware.h up into gcc.h and lint.h (hardware.h is still there,
but it's mostly empty).
Remove need for gcc.h from various benchmarking/test programs.
2014-10-04 12:10:17 -04:00
Keith Bostic
4c63f1e53f Minor shuffling to turn on more clang warnings:
- a few more uninitialized variables
- make variables local to a single file static
- replace use of WT_UNUSED_RET with error checking of the call (the
	macro was using a GCC extension clang doesn't like)

With these changes, clang is mostly silent using the following options:

	-Weverything
	-Wno-cast-align
	-Wno-conversion
	-Wno-covered-switch-default
	-Wno-documentation-unknown-command
	-Wno-format-nonliteral
	-Wno-language-extension-token
	-Wno-missing-noreturn
	-Wno-packed
	-Wno-padded
	-Wno-switch-enum
	-Wno-zero-length-array

Also, minor KNF whitespace cleanups.
2014-09-01 15:03:26 -04:00
Keith Bostic
5b509b7220 Update copyright notices for 2014.
Move lang/java and lang/python into the public domain.
2014-01-07 10:30:12 -05:00
Alex Gorrod
79f6384814 Move LSM configuration options to be a group in WT_SESSION->create API.
Options used to be lsm_xxx are now lsm=(xxx,xxx,xxx)
2013-12-03 17:52:03 +11:00
Keith Bostic
20646f5c83 CID 1129022 (#1 of 1): Dead default in switch (DEADCODE)
dead_error_begin: Execution cannot reach this statement "default:".
dead_error_condition: The switch value "r() % 7U" cannot reach the
default case.
2013-11-15 19:59:50 -05:00
Keith Bostic
9be66e1d26 Rework WT_UNUSED/WT_UNUSED_RET slightly: move GNUC macros out of misc.h
into their own include file "gcc.h", change the test programs to include
and use the definitions from that file.
2013-11-06 09:18:50 -05:00
Alex Gorrod
1e9c8b91d1 Fix compiler warnings with GCC 4.7.2 on Ubuntu. 2013-11-01 16:18:48 +11:00
Alex Gorrod
3342b80ab8 Add a WT_SESSION handle to WT_EVENT_HANDLER callbacks.
Specifically added to handle_error, handle_message and handle_progress.
This change allows applications to match events to session handles.
2013-08-29 07:49:53 +00:00
Alex Gorrod
22214b382c Merge branch 'develop' into java-auto-close 2013-08-15 18:43:39 +10:00
Michael Cahill
5163feb30c Avoid named checkpoints in test/fops now that they are prohibited with LSM. 2013-05-24 12:59:39 +10:00