massive-oss / mcover

A cross platform code coverage framework for Haxe with testing and profiling applications. Supports AVM1, AVM2, JavaScript, C++, PHP and Neko.
Other
59 stars 9 forks source link

Primitive not found std@mutex_create #34

Open explorigin opened 9 years ago

explorigin commented 9 years ago

This is my first time integrating mcover. I was able to get it running successfully in PHP and JS. But Neko throws me an error. This is with Haxe 3.2.

/usr/lib/haxe/std/neko/vm/Mutex.hx:27: characters 6-20 : Primitive not found std@mutex_create:0
<builtin>:1: character 0 : Called from
/usr/lib/haxe/std/neko/vm/Mutex.hx:24: lines 24-42 : Called from
/usr/lib/haxe/lib/mcover/2,1,1/mcover/coverage/MCoverage.hx:59: characters 29-40 : Called from
src/project/test/TestRunner.hx:9: characters 21-58 : Called from
src/project/test/TestRunner.hx:33: characters 8-18 : Called from
?:1: characters 1048575-8796094070782 : Called from
Aborted

Build instructions are:

-cp src
-lib mcover
--macro mcover.MCover.coverage(['project.view'], ['src'])
-main project.test.TestRunner
--interp

Test runner main function looks like:

        var logger = mcover.coverage.MCoverage.getLogger();  // Line: 9 mentioned in the stack trace

        var r = new haxe.unit.TestRunner();

        r.add(new project.view.test.TestVirtualizationTools());
        r.run();

        logger.report();