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:

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 const *argv[])

Define Documentation

#define ERR_OUT (  ) 
#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 const *  argv[] 
)

Definition at line 228 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.

Referenced by setup().

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

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

Referenced by job::common_pathname(), and test().

void setup ( void   ) 

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

Referenced by main().

void test ( void   ) 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Thu Sep 30 14:08:18 2010 for rvm by  doxygen 1.6.1