Bug 5199 - testVarOutOfScope(frysk.rt.TestDisplayValue): incorrect variable found
Summary: testVarOutOfScope(frysk.rt.TestDisplayValue): incorrect variable found
Status: NEW
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Sami Wagiaalla
URL:
Keywords:
Depends on:
Blocks: 2935
  Show dependency treegraph
 
Reported: 2007-10-18 15:52 UTC by Sami Wagiaalla
Modified: 2007-10-18 15:52 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sami Wagiaalla 2007-10-18 15:52:14 UTC
Marked test as broken:

testVarOutOfScope(frysk.rt.TestDisplayValue)junit.framework.AssertionFailedError:
Variable value at first breakpoint expected:<5> but was:<0>
   at frysk.rt.TestDisplayValue.testVarOutOfScope(TestRunner)
   at frysk.junit.Runner.runCases(TestRunner)
   at frysk.junit.Runner.runArchCases(TestRunner)
   at frysk.junit.Runner.runTestCases(TestRunner)
   at TestRunner.main(TestRunner)



====================================
int x;
int y;

void bar(int);

int main()
{
  x = 0;
  bar(x);
  x = 1;
  bar(x);
  y = 2;
  bar(y);
  x = 2;
  bar(x);

  return 0;
}

void bar(int x)
{
        x = 5;
}

When printing x at "x = 5" the global x is printed instead of the parameter.