tests/harness/testsuite.cc File Reference

#include <config.h>
#include "testsuite.h"
#include "backendmanager.h"
#include "fdtracker.h"
#include "testrunner.h"
#include <algorithm>
#include <iostream>
#include <set>
#include <cfloat>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "gnu_getopt.h"
#include <setjmp.h>
#include <signal.h>
#include <exception>
#include <xapian/error.h>
#include "noreturn.h"
#include "stringutils.h"
#include "utils.h"

Include dependency graph for testsuite.cc:

Go to the source code of this file.

Classes

class  SignalRedirector

Defines

#define SIGSETJMP(ENV, SAVESIGS)   setjmp(ENV)
#define SIGLONGJMP(ENV, VAL)   longjmp(ENV, VAL)
#define SIGJMP_BUF   jmp_buf

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 debug printing stream.
static SIGJMP_BUF jb
static int signum = 0
static void * sigaddr = NULL


Define Documentation

#define SIGJMP_BUF   jmp_buf

Definition at line 83 of file testsuite.cc.

#define SIGLONGJMP ( ENV,
VAL   )     longjmp(ENV, VAL)

Definition at line 82 of file testsuite.cc.

Referenced by handle_sig().

#define SIGSETJMP ( ENV,
SAVESIGS   )     setjmp(ENV)

Definition at line 81 of file testsuite.cc.

Referenced by test_driver::runtest().


Function Documentation

static void handle_sig ( int  signum_  )  [static]

Definition at line 206 of file testsuite.cc.

References jb, SIGLONGJMP, and signum.

Referenced by SignalRedirector::activate().

static void report_totals ( void   )  [static]

Definition at line 645 of file testsuite.cc.

References test_driver::report().

Referenced by test_driver::report().

bool TEST_EQUAL_DOUBLE_ ( double  a,
double  b 
)

Helper function for TEST_EQUAL_DOUBLE macro.

Definition at line 784 of file testsuite.cc.

Referenced by mset_range_is_same(), and mset_range_is_same_weights().

XAPIAN_NORETURN ( static void   handle_sigint signum_  ) 


Variable Documentation

const char* expected_exception = NULL

The exception type we were expecting in TEST_EXCEPTION.

Definition at line 90 of file testsuite.cc.

Referenced by test_driver::runtest().

SIGJMP_BUF jb [static]

Definition at line 170 of file testsuite.cc.

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

void* sigaddr = NULL [static]

Definition at line 172 of file testsuite.cc.

Referenced by SignalRedirector::activate(), and test_driver::runtest().

int signum = 0 [static]

Definition at line 171 of file testsuite.cc.

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

std::ostringstream tout

bool verbose

The global verbose flag.

Definition at line 70 of file testsuite.cc.


Documentation for Xapian (version 1.2.8).
Generated on 14 Dec 2011 by Doxygen 1.5.9.