~cpick/mongrel2/release

« back to all changes in this revision

Viewing changes to tests/minunit.h

  • Committer: Chris Pick
  • Date: 2013-06-30 16:39:57 UTC
  • mfrom: (1106.1.15)
  • Revision ID: git-v1:ec39967acb6bc9867ed9b9dc3774304ca6b9c294
Merge tag 'v1.8.1' into debian

Hotfix for github issue 148

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
#define mu_run_test(test) debug("\n-----%s", " " #test); message = test(); tests_run++; if (message) return message;
14
14
 
15
15
#define RUN_TESTS(name) void taskmain(int argc, char *argv[]) {\
 
16
     if(argc > 1) printf("TESTS DON'T TAKE ARGS\n");\
16
17
     FILE *log_file = fopen("tests/tests.log", "a+");\
17
18
     if(!log_file) { printf("CAN'T OPEN TEST LOG\n"); exit(1); } \
18
19
     setbuf(log_file, NULL);\