Test Executive System with Memory Leak Detection for User Code Modules
First Claim
1. A computer-readable memory medium comprising program instructions executable to:
- include a plurality of test executive steps in a test executive sequence in response to user input;
configure each test executive step of the plurality of test executive steps to call a respective user-supplied code module in response to user input; and
execute the test executive sequence, wherein said executing comprises executing each test executive step of the plurality of test executive steps;
wherein for each test executive step of at least a subset of the plurality of test executive steps, said executing the test executive step comprises;
checking memory usage before invoking execution of the user-supplied code module called by the test executive step;
invoking execution of the user-supplied code module called by the test executive step; and
checking memory usage again after the user-supplied code module called by the test executive step finishes execution to determine whether the user-supplied code module causes a memory leak.
5 Assignments
0 Petitions
Accused Products
Abstract
A system and method for automatically detecting heap corruption errors and memory leak errors caused by user-supplied code modules that are called by steps of a test executive sequence. The test executive sequence may first be created by including a plurality of test executive steps in the test executive sequence and configuring at least a subset of the steps to call user-supplied code modules. The test executive sequence may then be executed on a host computer under control of a test executive engine. For each step that calls a user-supplied code module, the test executive engine may perform certain actions to automatically detect whether the user-supplied code module causes a heap corruption error and/or automatically detect whether the user-supplied code module causes a memory leak error.
-
Citations
20 Claims
-
1. A computer-readable memory medium comprising program instructions executable to:
-
include a plurality of test executive steps in a test executive sequence in response to user input; configure each test executive step of the plurality of test executive steps to call a respective user-supplied code module in response to user input; and execute the test executive sequence, wherein said executing comprises executing each test executive step of the plurality of test executive steps; wherein for each test executive step of at least a subset of the plurality of test executive steps, said executing the test executive step comprises; checking memory usage before invoking execution of the user-supplied code module called by the test executive step; invoking execution of the user-supplied code module called by the test executive step; and checking memory usage again after the user-supplied code module called by the test executive step finishes execution to determine whether the user-supplied code module causes a memory leak. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A method for discovering a memory leak error caused by a test executive sequence, the method comprising:
-
including a plurality of test executive steps in the test executive sequence in response to user input; configuring each test executive step of the plurality of test executive steps to call a respective user-supplied code module in response to user input; and executing the test executive sequence, wherein said executing comprises executing each test executive step of the plurality of test executive steps; wherein for each test executive step of at least a subset of the plurality of test executive steps, said executing the test executive step comprises; checking memory usage before invoking execution of the user-supplied code module called by the test executive step; invoking execution of the user-supplied code module called by the test executive step; and checking memory usage again after the user-supplied code module called by the test executive step finishes execution to determine whether the user-supplied code module causes a memory leak. - View Dependent Claims (15, 16, 17)
-
-
18. A system comprising:
-
a sequence editor; a test executive engine; a host computer configured to execute the sequence editor and the test executive engine; and a unit under test (UUT) coupled to the host computer; wherein the host computer is configured to execute the sequence editor to create a test executive sequence for testing the UUT, wherein said creating the test executive sequence comprises including a plurality of test executive steps in the test executive sequence in response to user input to the sequence editor and configuring each test executive step of the plurality of test executive steps to call a respective user-supplied code module in response to user input to the sequence editor; wherein the host computer is further configured to execute the test executive engine, wherein the test executive engine is configured to control execution of the test executive sequence, wherein said controlling execution of the test executive sequence comprises causing each test executive step of the plurality of test executive steps to be executed on the host computer; wherein for each test executive step of at least a subset of the plurality of test executive steps, the test executive engine is configured to; check memory usage before invoking execution of the user-supplied code module called by the test executive step; invoke the user-supplied code module called by the test executive step for execution on the host computer; and check memory usage again after the user-supplied code module called by the test executive step finishes execution to determine whether the user-supplied code module causes a memory leak. - View Dependent Claims (19, 20)
-
Specification