| Summary: | [EUnit] Arguments of assert* (except assertError) are evaluated twice | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Epsilon | Reporter: | Antonio Garcia-Dominguez <agarcdomi> | ||||||
| Component: | Core | Assignee: | Antonio Garcia-Dominguez <agarcdomi> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | dkolovos, louis | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Antonio Garcia-Dominguez
Created attachment 197900 [details]
EOL script which reproduces the problem (requires SVN r1520 or later)
Created attachment 197902 [details]
Patch which fixes the issue, assuming all built-in operations are not overridable
For the time being, I'm working around the issue by assuming none of these operations can be overridden. Here is the patch I'm using.
We fixed this on SVN on our last meeting. Since then, I have moved the EUnit assertions to three new operation contributors: - a basic contributor with all assertions that are simple and do not require additional dependencies (in eol.engine). - an extra contributor with assertions that are more complex and/or require additional dependencies (in eunit.engine). - a contributor which is added from the EUnit Ant task, as the contributed operations require a reference to the Ant Project instance. Fixed in 0.9.1 |