|Re: [hatari-devel] Hatari screen test|
[ Thread Index |
| More lists.tuxfamily.org/hatari-devel Archives
Le 26/05/2020 à 18:43, Thomas Huth a écrit :
I've run now the test in a loop for 1000 times, and I never got a test
failure, even after decreasing the sleep time from 0.2 to 0.1. Are you
able to get a failure when running the run_test.sh script?
But well, if you feel more confident that way, feel free to change the
script to use the debugger instead the command fifo.
regarding these "synchronisation" problems using sleep (whose results
can sometimes vary depending on setups), couldn't this be handled with
some new natfeats functions specific to these regression tests ?
For example natfeats 'save screenshot' would save current screen content
as a png, and you could call it from a fixed hbl position in the
fullscreen code, which would ensure you always capture a complete screen.
So, the test could be :
- natfeats "screenshot filename.png"
- natfeats "print 'fullscreen test complete'"
- natfeats "quit hatari"
This way, no more sync problem or sleep to adjust, you can even run
hatari in fast forward mode during the test and it will work.