Path: utzoo!mnetor!uunet!husc6!bbn!gatech!mcnc!duke!crm From: crm@duke.cs.duke.edu (Charlie Martin) Newsgroups: comp.lang.ada Subject: Re: Testing hidden subpgms and state data Message-ID: <11685@duke.cs.duke.edu> Date: 4 May 88 17:36:58 GMT References: <8805041354.AA02809@boardwalk.mitre.org> Reply-To: crm@duke.UUCP (Charlie Martin) Organization: Duke University, Durham NC Lines: 14 One approach to testing that sort of hidden code I've used is to use a source-level debugger to force a change in state that then exercises the piece of code in question. This was sort of a dreadful hack, but enabled us to test things that couldn't readily be simulated in normal operation, e.g. error condition handling during a power fail. (Example: you have a power fail interrupt, the spec says to do such-and-such on the power fail. You *could* test it for real by installing it, enabling that interrupt, then pulling the plug. During unit test, this tends to enrage the other 22 people using the machine.) -- Charlie Martin (crm@cs.duke.edu,mcnc!duke!crm)