diff options
author | unknown <guilhem@gbichot3.local> | 2006-12-03 17:06:27 +0100 |
---|---|---|
committer | unknown <guilhem@gbichot3.local> | 2006-12-03 17:06:27 +0100 |
commit | b72903fe54cf83c3dcbec7e3532e23bf946249ba (patch) | |
tree | 4323db3f4d1941e5e8924912ffafbe60a8c4bdc5 /unittest | |
parent | 8993dab52dbacff5cc220b80e1679cd99dc2235c (diff) | |
download | mariadb-git-b72903fe54cf83c3dcbec7e3532e23bf946249ba.tar.gz |
Maria:
* merging changes done to the key cache since May 2006 into Maria
* enabling two small enough page cache's unit tests by default
* fix to have non-buffered output in unit tests (to not have a false
timeout killing in pushbuild) (patch given by Serg)
* removing some warnings of gcc -ansi
include/lf.h:
getting rid of "warning: ISO C does not allow extra `;' outside of a function"
(gcc -ansi)
mysys/lf_hash.c:
getting rid of "warning: ISO C does not allow extra `;' outside of a function"
(gcc -ansi)
mysys/mf_pagecache.c:
Cosmetic changes to minimize the diff with the key cache.
#define PAGECACHE_DEBUG_LOG is not needed (just define PAGECACHE_DEBUG
if you want) (this change removes "warning: 'pagecache_debug_print'
declared `static' but never defined").
Importing changes made to mf_keycache.c since May 2006, into the page cache.
Disabling online resizing in the page cache.
Fix for "warning: ISO C90 forbids mixed declarations and code".
unittest/mysys/Makefile.am:
Of the page cache's unit tests, two are small enough to run on pushbuild,
renaming them to a -t suffix.
unittest/mytap/tap.c:
pushbuild kills a test after seeing no output from it for 10 minutes;
so we set the mytap framework to not buffer output (patch given by
Serg) so that output is seen more frequently and not "all at the end
of the test".
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/mysys/Makefile.am | 15 | ||||
-rw-r--r-- | unittest/mytap/tap.c | 2 |
2 files changed, 11 insertions, 6 deletions
diff --git a/unittest/mysys/Makefile.am b/unittest/mysys/Makefile.am index 8dd0416dbac..f7b72255a72 100644 --- a/unittest/mysys/Makefile.am +++ b/unittest/mysys/Makefile.am @@ -12,7 +12,7 @@ LDADD = $(top_builddir)/unittest/mytap/libmytap.a \ # but don't run them by default (for this, a non "-t" suffix is used). # You can run them by hand (how: see "test" target in upper dir). noinst_PROGRAMS = bitmap-t base64-t my_atomic-t \ - mf_pagecache_single_1k-t-big mf_pagecache_single_8k-t-big \ + mf_pagecache_single_1k-t mf_pagecache_single_8k-t \ mf_pagecache_single_64k-t-big \ mf_pagecache_consist_1k-t-big mf_pagecache_consist_64k-t-big \ mf_pagecache_consist_1kHC-t-big mf_pagecache_consist_64kHC-t-big \ @@ -25,11 +25,14 @@ mf_pagecache_single_src = mf_pagecache_single.c $(top_srcdir)/mysys/mf_pagecache mf_pagecache_consist_src = mf_pagecache_consist.c $(top_srcdir)/mysys/mf_pagecache.c test_file.c test_file.h mf_pagecache_common_cppflags = -DEXTRA_DEBUG -DPAGECACHE_DEBUG -DMAIN -mf_pagecache_single_1k_t_big_SOURCES = $(mf_pagecache_single_src) -mf_pagecache_single_8k_t_big_SOURCES = $(mf_pagecache_single_src) +# Those two take reasonable resources (<100 MB) for < 1 minute +mf_pagecache_single_1k_t_SOURCES = $(mf_pagecache_single_src) +mf_pagecache_single_8k_t_SOURCES = $(mf_pagecache_single_src) +mf_pagecache_single_1k_t_CPPFLAGS = $(mf_pagecache_common_cppflags) -DPAGE_SIZE=1024 +mf_pagecache_single_8k_t_CPPFLAGS = $(mf_pagecache_common_cppflags) -DPAGE_SIZE=8192 + +# All others below are big mf_pagecache_single_64k_t_big_SOURCES = $(mf_pagecache_single_src) -mf_pagecache_single_1k_t_big_CPPFLAGS = $(mf_pagecache_common_cppflags) -DPAGE_SIZE=1024 -mf_pagecache_single_8k_t_big_CPPFLAGS = $(mf_pagecache_common_cppflags) -DPAGE_SIZE=8192 mf_pagecache_single_64k_t_big_CPPFLAGS = $(mf_pagecache_common_cppflags) -DPAGE_SIZE=65536 mf_pagecache_consist_1k_t_big_SOURCES = $(mf_pagecache_consist_src) @@ -52,4 +55,4 @@ mf_pagecache_consist_1kWR_t_big_CPPFLAGS = $(mf_pagecache_common_cppflags) -DPA mf_pagecache_consist_64kWR_t_big_SOURCES = $(mf_pagecache_consist_src) mf_pagecache_consist_64kWR_t_big_CPPFLAGS = $(mf_pagecache_common_cppflags) -DPAGE_SIZE=65536 -DTEST_WRITERS -CLEANFILES = my_pagecache_debug.log page_cache_test_file_1 +CLEANFILES = pagecache_debug.log page_cache_test_file_1 diff --git a/unittest/mytap/tap.c b/unittest/mytap/tap.c index 17ec51863d9..51330ad820b 100644 --- a/unittest/mytap/tap.c +++ b/unittest/mytap/tap.c @@ -150,6 +150,8 @@ static signal_entry install_signal[]= { void plan(int const count) { + + setvbuf(tapout, 0, _IONBF, 0); /* provide output at once */ /* Install signal handler */ |