On the embedded UnitTest++ side -- running amok or never completing is a constant problem, especially if the test involves expected messages / signals from external devices
1) We added hard Constraint -- set up "try" with activates a background timer whose ISR causes a throw -- sends system back to the catch near the original try -- hence recovery is possible. 2) Also added check if number of tests run = number of tests expected to be run Vlad wrote: > On Nov 26, 2009, at 5:08 AM, Mike Smith wrote: > > >> Surely we should be setting up "other" tests to check that tests finish >> executing within a certain time period. >> > > Unfortunately, it has been my experience (at the time, with win32/VC++) that > it's all too easy for the built-in unittest++ time limit guards to fail in > cases when there is a single test which runs amok and modifies memory it > shouldn't. A common result would be that some *random* number of tests > *later* the entire process either (a) just exits quietly, with no core dump > and no screen messages or (b) it never exits and can only be killed via the > equivalent of SIGKILL. > > These scenarios would be extremely time consuming to figure out and offer one > argument against "only show output when something fails" methodology. I'd > opine that progress reporting of some kind is essential and ideally there are > facilities to quickly zoom into the problem areas (which is what --suite and > --include/exclude allow, among other things). > > Cheers, > Vlad > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > unittest-cpp-devel mailing list > unittest-cpp-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/unittest-cpp-devel > > > -- Michael Smith Ph. D., Professor, Department of Electrical and Computer Engineering. Adjunct Professor, Department of Radiology, University of Calgary. Analog Devices University Ambassador. Electrical and Computer Engineering, Voice: (+1) 403-220-6142 University of Calgary, Calgary, Fax: (+1) 403-282-6855 Alberta, Canada T2N1N4 Email: mike.sm...@ucalgary.ca Experience can't be taught, experience can only be earned. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ unittest-cpp-devel mailing list unittest-cpp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unittest-cpp-devel