bugSimulavr: an AVR simulator - Bugs: bug #41774, example.py uses bogus addresses...


bug #41774: example.py uses bogus addresses for comparision

Submitted by:  Stefan Brüns <stefanbruens>
Submitted on:  Tue 04 Mar 2014 09:37:28 PM UTC  
Category:  Test Suite Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  Thomas K. <tomk>
Open/Closed:  Open Component Version:  simulavr

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 25 Oct 2014 05:03:10 PM UTC, comment #3: 


maybe a solution is, to read out the right addresses before with readelf.

cu, Thomas

Thomas K. <tomk>
Project AdministratorIn charge of this item.
Mon 06 Oct 2014 09:11:40 PM UTC, comment #2: 

Hi Thomas,

will try to come up with something better ...

Stefan Brüns <stefanbruens>
Mon 06 Oct 2014 05:02:42 PM UTC, comment #1: 


you are right, it's really not a good example ... but a example. :-)

On one hand I want to show, what's possible. Especially how it could used in automated tests also for avr code. But on the other hand, FAIL is a failure!

Any ideas to make a better test szenario? Just to show possibilities but not to make it to complicated.

Or maybe write some better description in README and why it can happen to FAIL?

cu, Thomas

Thomas K. <tomk>
Project AdministratorIn charge of this item.
Tue 04 Mar 2014 09:37:28 PM UTC, original submission:  

test4 and test6 lookup the address of two functions (main and timer2_ticks).

The address comparision in the assertion is completely bogus, as the code position depends on compiler version, optimization level ...

Stefan Brüns <stefanbruens>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by tomk (Posted a comment)
  • -email is unavailable- added by stefanbruens (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-25 tomk Assigned toNone => tomk

    Back to the top

    Powered by Savane 3.5