Update of /cvsroot/cppunit/cppunit/examples/hierarchy
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv23758/examples/hierarchy
Modified Files:
Makefile.am main.cpp
Log Message:
Fix examples/hierarchy to actually return the result of the tests.
It is expected to fail, so mark it using XFAIL_TESTS in Makefile.am.
Index: main.cpp
===================================================================
RCS file: /cvsroot/cppunit/cppunit/examples/hierarchy/main.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** main.cpp 14 Jul 2002 19:48:31 -0000 1.12
--- main.cpp 12 Jan 2007 05:27:05 -0000 1.13
***************
*** 16,23 ****
runner.addTest( ChessTest<Chess>::suite() );
! bool wasSucessful = runner.run();
! // should be:
! // return wasSuccessful ? 0 : 1;
! return 0;
}
--- 16,21 ----
runner.addTest( ChessTest<Chess>::suite() );
! bool wasSuccessful = runner.run();
! return wasSuccessful ? 0 : 1;
}
Index: Makefile.am
===================================================================
RCS file: /cvsroot/cppunit/cppunit/examples/hierarchy/Makefile.am,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Makefile.am 7 May 2003 20:07:16 -0000 1.9
--- Makefile.am 12 Jan 2007 05:27:05 -0000 1.10
***************
*** 2,5 ****
--- 2,7 ----
TESTS = hierarchy
+ XFAIL_TESTS = hierarchy
+
check_PROGRAMS = $(TESTS)
|