diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-06-27 11:29:38 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-06-27 11:29:38 -0700 |
commit | af64f744faaebb4bccd2ff44cd36851eacc659ad (patch) | |
tree | 39405620c3ab0899351ded7f6e6870f4673a3573 | |
parent | c70bc3dd47f605c48b3a80bb545187e2f312d5b4 (diff) | |
parent | 6dd9a35b52943062968a2cf8cc50684a5e316a3f (diff) |
Merge pull request #2457 from chadaustin/remove-leak-check-superfixture
Remove the Emscripten leak check superfixture stuff: it's not compatible...
-rw-r--r-- | tests/embind/embind.test.js | 32 |
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(); |