| Summary: | testVarOutOfScope(frysk.rt.TestDisplayValue): incorrect variable found | ||
|---|---|---|---|
| Product: | frysk | Reporter: | Sami Wagiaalla <swagiaal> |
| Component: | general | Assignee: | Sami Wagiaalla <swagiaal> |
| Status: | NEW --- | ||
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Host: | Target: | ||
| Build: | Last reconfirmed: | ||
| Project(s) to access: | ssh public key: | ||
| Bug Depends on: | |||
| Bug Blocks: | 2935 | ||
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.