test-logger.cc File Reference

#include "config.h"
#include <iostream>
#include <fstream>
#include <string>
#include <cassert>
#include <unistd.h>
#include <errno.h>
#include "asserts.h"
#include "types.h"
#include "error.h"
#include "estring.h"
#include "fs.h"
#include "tstamp.h"
#include "rconfig.h"
#include "timer.h"
#include "logger.h"

Include dependency graph for test-logger.cc:

Include dependency graph

Go to the source code of this file.

Defines

#define ERR_OUT(e)
#define TEST(code, test)

Functions

bool make_dir (const std::string &path)
void cleanup (void)
void setup (void)
const bool same (std::string s1, std::string s2)
void test (void)
int main (int argc, char *argv[])


Define Documentation

#define ERR_OUT  ) 
 

Definition at line 26 of file test-logger.cc.

Referenced by test(), test1(), test2(), test3(), test_rvm(), and test_vaulter().

#define TEST code,
test   ) 
 

Value:

thrown = false; \
        try { \
                code; \
        } \
        catch(error e) { \
                ERR_OUT(e); \
                thrown = true; \
        } \
        catch(...) { \
                assert(0); \
        }

Definition at line 28 of file test-logger.cc.

Referenced by test(), test1(), test2(), test3(), test5(), test6(), and test7().


Function Documentation

void cleanup void   ) 
 

Definition at line 57 of file test-logger.cc.

int main int  argc,
char *  argv[]
 

Definition at line 220 of file test-logger.cc.

References cleanup(), err_unknown, setup(), and test().

Here is the call graph for this function:

bool make_dir const std::string &  path  ) 
 

Definition at line 42 of file test-logger.cc.

const bool same std::string  s1,
std::string  s2
 

Definition at line 82 of file test-logger.cc.

Referenced by test().

void setup void   ) 
 

Definition at line 62 of file test-logger.cc.

Referenced by main().

void test void   ) 
 

Definition at line 97 of file test-logger.cc.

References log_manager::clear(), config, configuration_manager::default_file(), configuration_manager::init(), log_manager::init(), logger, pid(), same(), stamp(), timestamp::str(), TEST, configuration_manager::timestamp(), and log_manager::write().

Here is the call graph for this function:


Generated on Mon Jul 12 12:05:25 2004 for rvm by doxygen 1.3.6