1 // -*- C++ -*-
2 // This is a sample of a custom test runner
3 // using CxxTest template files.
4 // This prints the output to a file given on the command line.
5 //
7 #include <cxxtest/StdioPrinter.h>
8 #include <stdio.h>
10 int main( int argc, char *argv[] )
11 {
12 if ( argc != 2 ) {
13 fprintf( stderr, "Usage: %s <output file name>\n", argv[0] );
14 return -1;
15 }
17 return CxxTest::StdioPrinter( fopen( argv[1], "w" ) ).run();
18 }
20 // The CxxTest "world"
21 <CxxTest world>