#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"

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 SIGJMP_BUF jmp_buf |
Definition at line 83 of file testsuite.cc.
| #define SIGSETJMP | ( | ENV, | |||
| SAVESIGS | ) | setjmp(ENV) |
| 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_ | ) |
| 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 |
The debug printing stream.
The output stream.
Definition at line 93 of file testsuite.cc.
Referenced by check_double_serialisation(), check_vals(), DEFINE_TESTCASE(), initrand(), make_sparse_db(), mset_range_is_same(), mset_range_is_same_percents(), mset_range_is_same_weights(), print_mset_percentages(), print_mset_weights(), qp_scale1_helper(), replicate_with_brokenness(), test_driver::runtest(), test_autoptr::test_autoptr(), test_qp_default_op1(), test_qp_default_op2(), test_qp_flag_pure_not1(), test_qp_near1(), test_qp_odd_chars1(), test_qp_phrase1(), test_qp_spell1(), test_qp_spell2(), test_qp_spellpartial1(), test_qp_spellwild1(), test_qp_stem_all1(), test_qp_stopper1(), test_qp_stopword_group1(), test_qp_synonym1(), test_qp_synonym2(), test_qp_synonym3(), test_qp_value_customrange1(), test_qp_value_daterange1(), test_qp_value_daterange2(), test_qp_value_range1(), test_qp_value_range2(), test_qp_value_range3(), test_qp_value_range4(), test_qp_value_stringrange1(), test_queryparser1(), test_refcnt::test_refcnt(), test_scalability(), test_serialiselength1(), test_stemdict(), test_stemjunk(), test_stemrandom(), test_stringcomp1(), test_termgen1(), test_value_range_serialise1(), test_driver::write_and_clear_tout(), test_autoptr::~test_autoptr(), and test_refcnt::~test_refcnt().
| bool verbose |