tests/harness/testsuite.cc File Reference

#include <config.h>
#include "testsuite.h"
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <streambuf.h>
#include <set>
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "gnu_getopt.h"
#include <setjmp.h>
#include <signal.h>
#include <exception>
#include <xapian/error.h>
#include "noreturn.h"
#include "omdebug.h"
#include "stringutils.h"
#include "utils.h"

Include dependency graph for testsuite.cc:

Go to the source code of this file.

Classes

class  SignalRedirector

Functions

 XAPIAN_NORETURN (static void handle_sig(int signum_))
static void handle_sig (int signum_)
static void report_totals (void)
bool TEST_EQUAL_DOUBLE_ (double a, double b)
 Helper function for TEST_EQUAL_DOUBLE macro.

Variables

bool verbose
 The global verbose flag.
const char * expected_exception = NULL
 The exception type we were expecting in TEST_EXCEPTION.
std::ostringstream tout
 The output stream.
static jmp_buf jb
static int signum = 0


Function Documentation

XAPIAN_NORETURN ( static void   handle_sig(int signum_)  ) 

static void handle_sig ( int  signum_  )  [static]

Definition at line 162 of file testsuite.cc.

References jb, and signum.

Referenced by SignalRedirector::activate().

static void report_totals ( void   )  [static]

Definition at line 572 of file testsuite.cc.

References test_driver::report(), and test_driver::total.

bool TEST_EQUAL_DOUBLE_ ( double  a,
double  b 
)

Helper function for TEST_EQUAL_DOUBLE macro.

Definition at line 719 of file testsuite.cc.


Variable Documentation

bool verbose

The global verbose flag.

Definition at line 75 of file testsuite.cc.

const char* expected_exception = NULL

The exception type we were expecting in TEST_EXCEPTION.

Definition at line 85 of file testsuite.cc.

Referenced by test_driver::runtest().

std::ostringstream tout

The output stream.

Data written to this stream will only appear when a test fails.

Definition at line 88 of file testsuite.cc.

Referenced by check_double_serialisation(), DEFINE_TESTCASE(), do_create(), do_update(), make_dir(), print_mset_percentages(), print_mset_weights(), test_driver::runtest(), test_autoptr::test_autoptr(), test_emptykey1(), test_packstring1(), test_qp_default_op1(), test_qp_flag_pure_not1(), test_qp_odd_chars1(), test_qp_spell1(), test_qp_spell2(), test_qp_stem_all1(), test_qp_stem_scale1(), test_qp_stopper1(), test_qp_synonym1(), test_qp_synonym2(), test_qp_synonym3(), test_qp_value_customrange1(), test_qp_value_daterange1(), test_qp_value_range1(), test_qp_value_range2(), test_qp_value_range3(), test_queryparser1(), test_refcnt::test_refcnt(), test_serialiselength1(), test_stemdict(), test_stemjunk(), test_stemrandom(), test_stringcomp1(), test_termgen1(), test_value_range_serialise1(), test_autoptr::~test_autoptr(), and test_refcnt::~test_refcnt().

jmp_buf jb [static]

Definition at line 155 of file testsuite.cc.

Referenced by handle_sig(), and test_driver::runtest().

int signum = 0 [static]

Definition at line 156 of file testsuite.cc.

Referenced by handle_sig(), and test_driver::runtest().


Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.