Olivine-Labs/busted — pull request #15 by nilnor (2012-09-05 13:38:49+00:00)
Title: Fix coroutine detection

coroutine.running() has changed semantics between 5.1 and
5.2, and now returns a second boolean indicating whether the
running coroutine is the main one.

https://github.com/Olivine-Labs/busted/issues/12 contains more information about the problem caused by this.

This is just a suggestion of one way of one of fixing of course, but if nothing else it illustrates the logic that is needed somewhere in order to support both 5.1 and 5.2.