# US 10,372,526 B2 · Cleanup of unpredictable test results

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,372,526 B2
- Document ID: US10372526B2
- Status: Granted
- Kind: B2
- Application number: 15/649,834
- Filed: 2017-07-14
- Published: 2019-01-17
- Granted: 2019-08-06
- Earliest claimed: 2017-07-14
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Louis P. Gomes
- Web page: https://patentgrep.com/patent/US10372526B2

## CPC

- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 11/004: {Error avoidance (G06F11/07 and subgroups take precedence)}
- G06F 11/22: Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F 11/2273: {Test methods}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/0718: {in an object-oriented system}
- G06F 11/0754: {by exceeding limits}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In an approach to cleanup of unpredictable test results, one or more computer processors generate a data area associated with a first test instruction in a test stream. The one or more computer processors determine whether the generated data area overlaps with an unpredictable data area. In response to determining the generated data area overlaps with an unpredictable data area, the one or more computer processors determine a second test instruction associated with the overlapped unpredictable data area, where the second test instruction precedes the first test instruction in the test stream. The one or more computer processors select a location in the test stream between the first test instruction and the second test instruction. The one or more computer processors insert one or more pre-requisite instructions in the selected location, where the one or more pre-requisite instructions load the overlapped unpredictable data area with pre-defined data.

## Claims

### Claim 1

A computer program product for cleanup of unpredictable test results, the computer program product comprising:
one or more computer readable storage devices and program instructions stored on the one or more computer readable storage devices, the stored program instructions comprising:
program instructions to generate a data area associated with a test instruction in a test stream;
program instructions to determine whether the data area overlaps with an unpredictable data area;
responsive to determining the data area overlaps with the unpredictable data area, program instructions to determine a prior test instruction associated with the unpredictable data area, wherein the prior test instruction precedes the test instruction in the test stream;
program instructions to select a location in the test stream between the test instruction and the prior test instruction; and
program instructions to insert one or more pre-requisite instructions in the location, wherein the one or more pre-requisite instructions load the unpredictable data area with pre-defined data.

### Claim 2 (depends on 1)

The computer program product of claim 1, the stored program instructions further comprising:
responsive to generating the data area associated with the test instruction, program instructions to determine whether the test instruction generates predictable data;
responsive to determining the test instruction does not generate predictable data, program instructions to store an address of the test instruction in a first database;
program instructions to store an address of the data area associated with the test instruction in a second database; and
program instructions to store a length of the data area associated with the test instruction in the second database.

### Claim 3 (depends on 2)

The computer program product of claim 2, the stored program instructions further comprising:
responsive to inserting the one or more pre-requisite instructions in the location, program instructions to remove the address of the test instruction from the first database;
program instructions to remove the address of the data area associated with the test instruction from the second database; and
program instructions to remove the length of the data area associated with the test instruction from the second database.

### Claim 4 (depends on 1)

The computer program product of claim 1, the stored program instructions further comprising, responsive to determining the prior test instruction associated with the unpredictable data area, program instructions to determine whether the test instruction can use one or more data areas containing predictable data.

### Claim 5 (depends on 1)

The computer program product of claim 1, wherein the location is a random location between the test instruction and the prior test instruction.

### Claim 6 (depends on 1)

The computer program product of claim 1, wherein the pre-defined data is predictable data, and wherein the pre-defined data is stored in a read-only database.

### Claim 7 (depends on 1)

The computer program product of claim 1, wherein the one or more pre-requisite instructions further comprise:
program instructions to copy the pre-defined data; and
program instructions to overwrite data in the unpredictable data area with the pre-defined data.

### Claim 8

A computer system for cleanup of unpredictable test results, the computer system comprising:
one or more computer processors;
one or more computer readable storage devices;
program instructions stored on the one or more computer readable storage devices for execution by at least one of the one or more computer processors, the stored program instructions comprising:
program instructions to program instructions to generate a data area associated with a test instruction in a test stream;
program instructions to determine whether the data area overlaps with an unpredictable data area;
responsive to determining the data area overlaps with the unpredictable data area, program instructions to determine a prior test instruction associated with the unpredictable data area, wherein the prior test instruction precedes the test instruction in the test stream;
program instructions to select a location in the test stream between the test instruction and the prior test instruction; and
program instructions to insert one or more pre-requisite instructions in the location, wherein the one or more pre-requisite instructions load the unpredictable data area with pre-defined data.

### Claim 9 (depends on 8)

The computer system of claim 8, the stored program instructions further comprising:
responsive to generating the data area associated with the test instruction, program instructions to determine whether the test instruction generates predictable data;
responsive to determining the test instruction does not generate predictable data, program instructions to store an address of the test instruction in a first database;
program instructions to store an address of the data area associated with the test instruction in a second database; and
program instructions to store a length of the data area associated with the test instruction in the second database.

### Claim 10 (depends on 9)

The computer system of claim 9, the stored program instructions further comprising:
responsive to inserting the one or more pre-requisite instructions in the location, program instructions to remove the address of the test instruction from the first database;
program instructions to remove the address of the data area associated with the test instruction from the second database; and
program instructions to remove the length of the data area associated with the test instruction from the second database.

### Claim 11 (depends on 8)

The computer system of claim 8, the stored program instructions further comprising, responsive to determining the prior test instruction associated with the unpredictable data area, program instructions to determine whether the test instruction can use one or more data areas containing predictable data.

### Claim 12 (depends on 8)

The computer system of claim 8, wherein the location is a random location between the test instruction and the prior test instruction.

### Claim 13 (depends on 8)

The computer system of claim 8, wherein the one or more pre-requisite instructions further comprise:
program instructions to copy the pre-defined data; and
program instructions to overwrite data in the unpredictable data area with the pre-defined data.
