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

Also available in: Atom PDF