Changeset 6810
- Timestamp:
- 08/09/10 18:15:37 (17 months ago)
- Location:
- branches/refactor/UNIT_TESTER
- Files:
-
- 1 added
- 4 modified
-
. (modified) (1 prop)
-
Makefile (modified) (2 diffs)
-
TestEnvironment.cxx (added)
-
UnitTester.cxx (modified) (2 diffs)
-
UnitTester.hxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/refactor/UNIT_TESTER
- Property svn:ignore
-
old new 5 5 *.gcno 6 6 logs 7 test_environment
-
- Property svn:ignore
-
branches/refactor/UNIT_TESTER/Makefile
r6792 r6810 2 2 .SUFFIXES: .o .cxx .depend 3 3 4 CPP_OBJECTS = \4 TESTER_OBJECTS = \ 5 5 UnitTester.o \ 6 6 7 GLOBAL_OBJECTS = \ 8 TestEnvironment.o \ 7 9 8 $(MAIN): $(CPP_OBJECTS) 9 $(LINK_STATIC_LIB) $(MAIN) $(CPP_OBJECTS) 10 CPP_OBJECTS = $(TESTER_OBJECTS) $(GLOBAL_OBJECTS) 11 12 $(MAIN): $(TESTER_OBJECTS) test_environment 13 $(LINK_STATIC_LIB) $(MAIN) $(TESTER_OBJECTS) 14 15 test_environment: $(GLOBAL_OBJECTS) $(TESTER_OBJECTS) 16 $(LINK_EXECUTABLE) test_environment $(GLOBAL_OBJECTS) $(TESTER_OBJECTS) $(LIBPATH) $(ARBDB_LIB) 17 10 18 .cxx.o: 11 19 $(CPP) $(cflags) -c $< $(CPPINCLUDES) 12 20 13 21 clean: 14 rm -f $(CPP_OBJECTS) 22 rm -f $(CPP_OBJECTS) *.a test_environment 15 23 $(MAKE) -f Makefile.test clean 24 16 25 17 26 DEPENDS = $(CPP_OBJECTS:.o=.depend) … … 32 41 # For formatting issues see SOURCE_TOOLS/fix_depends.pl 33 42 43 TestEnvironment.o: test_global.h 44 TestEnvironment.o: test_unit.h 45 TestEnvironment.o: UnitTester.hxx 46 TestEnvironment.o: $(ARBHOME)/INCLUDE/ad_k_prot.h 47 TestEnvironment.o: $(ARBHOME)/INCLUDE/ad_prot.h 48 TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_assert.h 49 TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_core.h 50 TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_defs.h 51 TestEnvironment.o: $(ARBHOME)/INCLUDE/arb_error.h 52 TestEnvironment.o: $(ARBHOME)/INCLUDE/arbdb.h 53 TestEnvironment.o: $(ARBHOME)/INCLUDE/arbdb_base.h 54 TestEnvironment.o: $(ARBHOME)/INCLUDE/arbtools.h 55 TestEnvironment.o: $(ARBHOME)/INCLUDE/attributes.h 56 TestEnvironment.o: $(ARBHOME)/INCLUDE/dupstr.h 57 TestEnvironment.o: $(ARBHOME)/INCLUDE/smartptr.h 58 34 59 UnitTester.o: test_global.h 35 60 UnitTester.o: test_unit.h -
branches/refactor/UNIT_TESTER/UnitTester.cxx
r6809 r6810 51 51 // -------------------------------------------------------------------------------- 52 52 53 enum UnitTestResult {54 TEST_OK,55 TEST_TRAPPED,56 };57 58 53 static const char *readable_result[] = { 59 54 "OK", … … 79 74 #define SECOND 1000000 80 75 81 staticUnitTestResult execute_guarded(UnitTest_function fun, long *duration_usec) {76 UnitTestResult execute_guarded(UnitTest_function fun, long *duration_usec) { 82 77 SigHandler old_handler = INSTALL_SIGHANDLER(SIGSEGV, UNITTEST_sigsegv_handler, "execute_guarded"); 83 78 -
branches/refactor/UNIT_TESTER/UnitTester.hxx
r6746 r6810 24 24 const char *location; 25 25 }; 26 enum UnitTestResult { 27 TEST_OK, 28 TEST_TRAPPED, 29 }; 26 30 27 31 struct UnitTester { … … 29 33 }; 30 34 35 UnitTestResult execute_guarded(UnitTest_function fun, long *duration_usec); 36 31 37 #else 32 38 #error UnitTester.hxx included twice
