tests/soaktest/soaktest.h File Reference

Long-running "soak" tests for Xapian. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

unsigned int initrand ()
 Initialise the random number generator with the seed.
unsigned int randint (unsigned int s)
 Return a random integer in the range 0 to s-1.


Detailed Description

Long-running "soak" tests for Xapian.

Definition in file soaktest.h.


Function Documentation

unsigned int initrand (  ) 

Initialise the random number generator with the seed.

Definition at line 38 of file soaktest.cc.

References g_random_seed, and tout.

Referenced by DEFINE_TESTCASE().

unsigned int randint ( unsigned int  s  ) 

Return a random integer in the range 0 to s-1.

Definition at line 45 of file soaktest.cc.

Referenced by builddb_queries1(), combine_AND(), combine_OR(), combine_XOR(), QueryBuilder::make_query(), and push_leaf_N().


Documentation for Xapian (version 1.2.9).
Generated on 10 May 2012 by Doxygen 1.5.9.