Patent ID: 8381040

Claim:
A computer program product for executing test code with relocatable interrupt handler instructions, the computer program product comprising: a non-transitory machine-readable storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: executing, by a computer, a test code block comprising a plurality of test instructions, the executing comprising for one or more of the test instructions: executing the test instruction; determining that the executing the test instruction caused an exception condition to occur; based on the determining, locating exception handling logic at an entry address; executing first exception handling logic associated with the exception condition based on determining that the executing the test instruction caused the exception condition to occur, the first exception handling logic located at the entry address consisting of a first memory address value, the executing the first exception handling logic comprising: clearing the exception condition; and changing the entry address, by the first exception handling logic, to a second memory address value, the second memory address value being an address of a second exception handling logic for handling another exception condition of the test code block; and returning execution from the first exception handling logic to the test instruction that caused the exception condition to occur; continuing execution of the test code block; and generating a return code indicating a result of the executing the test code block.