rvm  1.11
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
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.

Macros

#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[])
 

Macro Definition Documentation

#define ERR_OUT (   e)

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

#define TEST (   code,
  test 
)
Value:
thrown = false; \
try { \
code; \
} \
catch(error e) { \
ERR_OUT(e); \
thrown = true; \
} \
catch(...) { \
assert(0); \
}
#define ERR_OUT(e)
Definition: test-logger.cc:26
An error class.
Definition: error.h:72

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

Referenced by test().

Function Documentation

void cleanup ( void  )

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

Referenced by main().

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  )