summaryrefslogtreecommitdiff
path: root/unittest/mytap/tap.c
diff options
context:
space:
mode:
authorunknown <guilhem@gbichot3.local>2006-12-03 17:06:27 +0100
committerunknown <guilhem@gbichot3.local>2006-12-03 17:06:27 +0100
commitb72903fe54cf83c3dcbec7e3532e23bf946249ba (patch)
tree4323db3f4d1941e5e8924912ffafbe60a8c4bdc5 /unittest/mytap/tap.c
parent8993dab52dbacff5cc220b80e1679cd99dc2235c (diff)
downloadmariadb-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/mytap/tap.c')
-rw-r--r--unittest/mytap/tap.c2
1 files changed, 2 insertions, 0 deletions
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
*/