Project

General

Profile

Actions

Bug #5679

closed

Bug in test data generation

Added by Alexander Kamkin about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
High
Assignee:
Andrei Tatarnikov
Category:
Test Engine
Target version:
Start date:
03/03/2015
Due date:
% Done:

100%

Estimated time:
Detected in build:
svn
Platform:
Published in build:
150529

Description

If there are dependent instructions, e.g.

  add a, b, c @ normal
  sub d, a, e @ overflow

the generator produces incorrect initialization code: it does not track dependencies between instructions and handles each instruction independently from the others.

The correct implementation should work as follows:

for each instruction of the test sequence do
  get the test situation of the instruction
  get the input values defined by the previous instructions
  fix those values in the test situation
  solve the restricted constraint and assign the rest of the parameters
    mark them as 'defined'
  simulate the instruction and produce the output values
    mark them as 'defined' (if there was no exception, etc.)
end

for each defined parameter do
  add the initialization code for the parameter
end
Actions #1

Updated by Alexander Kamkin about 9 years ago

  • Subject changed from [generator] Bug in test data generation to Bug in test data generation
  • Category set to Test Engine
Actions #2

Updated by Alexander Kamkin about 9 years ago

  • Target version changed from 2.1 to 2.2
Actions #3

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Andrei Tatarnikov almost 9 years ago

At the moment, the following limitations apply. They must be handled:

  1. Bug #5987
  2. Bug #5990
Actions #6

Updated by Andrei Tatarnikov almost 9 years ago

  • Status changed from Resolved to Closed
  • Published in build set to 150529
Actions

Also available in: Atom PDF