aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Austin <caustin@gmail.com>2014-06-25 21:33:58 -0700
committerChad Austin <chad@chadaustin.me>2014-06-26 23:08:47 -0700
commit6dd9a35b52943062968a2cf8cc50684a5e316a3f (patch)
tree247213142fcccbb374226ac9bcaee0ad32630022
parent27a0399fa393cc5ee02c863c7a57170902bc692d (diff)
Remove the Emscripten leak check superfixture stuff: it's not compatible with asm.js or fastcomp, sadly.
-rw-r--r--tests/embind/embind.test.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js
index f1de1a12..186dc28d 100644
--- a/tests/embind/embind.test.js
+++ b/tests/embind/embind.test.js
@@ -8,15 +8,12 @@ module({
cm.setDelayFunction(undefined);
if (typeof INVOKED_FROM_EMSCRIPTEN_TEST_RUNNER === "undefined") { // TODO: Enable this to work in Emscripten runner as well!
- cm._mallocDebug(2);
assert.equal(0, cm.count_emval_handles());
- cm._mallocAssertAllMemoryFree();
}
});
this.tearDown(function() {
cm.flushPendingDeletes();
if (typeof INVOKED_FROM_EMSCRIPTEN_TEST_RUNNER === "undefined") { // TODO: Enable this to work in Emscripten runner as well!
- cm._mallocAssertAllMemoryFree();
assert.equal(0, cm.count_emval_handles());
}
});
@@ -29,35 +26,6 @@ module({
});
});
- if (typeof INVOKED_FROM_EMSCRIPTEN_TEST_RUNNER === "undefined") { // TODO: Enable this to work in Emscripten runner as well!
-
- BaseFixture.extend("leak testing", function() {
- test("no memory allocated at start of test", function() {
- cm._mallocAssertAllMemoryFree();
- });
- test("assert when memory is allocated", function() {
- var ptr = cm._malloc(42);
- assert.throws(cm._MemoryAllocationError, function() {
- cm._mallocAssertAllMemoryFree();
- });
- cm._free(ptr);
- });
- test("allocated memory counts down again for free", function() {
- var ptr = cm._malloc(42);
- cm._free(ptr);
- cm._mallocAssertAllMemoryFree();
- });
- test("free without malloc throws MemoryAllocationError", function() {
- var ptr = cm._malloc(42);
- cm._free(ptr);
- assert.throws(cm._MemoryAllocationError, function() {
- cm._free(ptr);
- });
- });
- });
-
- }
-
BaseFixture.extend("access to base class members", function() {
test("method name in derived class silently overrides inherited name", function() {
var derived = new cm.Derived();