|
|
||
|
Fabio Mascarenhas wrote:
The 4-th test case:
require"profiler"
profiler.stop()
profiler.stop() --> crash here
Sorry, couldn't reproduce this... the code is already guarding against a
stop without a start, so it shouldn't matter if you are doing one stop
or 10. :-)
You are right. I got a crash because I didn't run this test case independently but rather together with other test cases.
The 4-th test case crashes when it is run after the 1-st test. I combined them together: The 6-th test case: require"profiler" profiler.start() local co = coroutine.create(function() end) coroutine.resume(co) profiler.stop() profiler.stop() profiler.stop() --> crash -- Shmuel