Browse Prior Art Database

Unit Test Suspend Tool

IP.com Disclosure Number: IPCOM000036288D
Original Publication Date: 1989-Sep-01
Included in the Prior Art Database: 2005-Jan-28
Document File: 2 page(s) / 29K

Publishing Venue

IBM

Related People

Pekowski, RP: AUTHOR

Abstract

A software tool is disclosed that suspends a program being unit tested with a debugger so that other tasks can be performed. The techniques used in this tool are applicable to microprocessor-based machines with muti-tasking operating systems having an interrupt-driven debugging tool.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 76% of the total text.

Page 1 of 2

Unit Test Suspend Tool

A software tool is disclosed that suspends a program being unit tested with a debugger so that other tasks can be performed. The techniques used in this tool are applicable to microprocessor-based machines with muti-tasking operating systems having an interrupt-driven debugging tool.

The unit test tool hooks (chains to) the interrupt vector that drives the operating systems debug tool. When control is passed to its interrupt handler via the debugger's interrupt, the following procedure is performed to suspend the program under test:
1) The stack is set up

to return control to the suspend code.
2) A return from interrupt is executed.
3) The suspend code issues an operating system request to

suspend the thread/process for one second.
4) The suspend code remains in a loop suspending the

thread/process for one second at a time, until a user

keystroke (or sequence of keystrokes) is detected.
5) The suspend code returns control to the interrupt

handler by issuing the debugger's interrupt.
6) The interrupt handler restores the stack to the

interrupted thread/process's stack and jumps directly

to the debugger.
7) When the debugger function is complete, it returns

directly to the suspended thread/process.

The unit test suspend tool can be turned on or off with a sequence of keystrokes. When turned off, the system acts as if the tool were not there.

(Image Omitted)

The suspension of a thread/process that is under unit test gives the tester the chance...