Error injection into the leaf functions of call graphs
AssigneeInternational Business Machines Corporation
InventorMetin Kalayci
Life of this patent
Estimating the term…
Abstract
A computer identifies a target for an injection of an error. The computer monitors the call graph, of a program being tested, for instances of the target. The computer identifies an instance of the target in the call graph. The computer determines if the instance of the target satisfies two or more parameters required for error injection. If the computer determines that the instance of the target does satisfy two or more parameters required for error injection, then the computer injects a first instance of an error into a leaf function of the call graph. The execution of the first instance of the injected error results in a first code path, of the program being tested, to be followed.
Claims21
1-10. (canceled)
A computer program product for injecting errors into a leaf function of a call graph, the computer program product comprising:
- one or more computer-readable storage media and program instructions stored on the one or more computer-readable storage media, the program instructions comprising:
- program instructions to identify a target for an injection of an error;
- program instructions to monitor a call graph of a program being tested for instances of the target;
- program instructions to identify an instance of the target in the call graph;
- program instructions to determine if the instance of the target satisfies two or more parameters required for error injection;
- and
- program instructions to respond to the determination that the instance of the target does satisfy two or more parameters required for error injection, by injecting a first instance of an error into a leaf function of the call graph, wherein execution of the first instance of the injected error results in a first code path of the program being tested to be followed.
A computer system for injecting errors into a leaf function of a call graph, the computer system comprising:
- one or more computer processors;
- one or more computer readable storage medium;
- program instructions stored on the computer readable storage medium for execution by at least one of the one or more processors, the program instructions comprising:
- program instructions to identify a target for an injection of an error;
- program instructions to monitor a call graph of a program being tested for instances of the target;
- program instructions to identify an instance of the target in the call graph;
- program instructions to determine if the instance of the target satisfies two or more parameters required for error injection;
- and
- program instructions to respond to the determination that the instance of the target does satisfy two or more parameters required for error injection, by injecting a first instance of an error into a leaf function of the call graph, wherein execution of the first instance of the injected error results in a first code path of the program being tested to be followed.
Dependencies are inferred from the claim text.