Skip to content

Commit

Permalink
misc test cleanup (emscripten-core#5357)
Browse files Browse the repository at this point in the history
  • Loading branch information
buu700 committed Jul 5, 2017
1 parent 47875d6 commit a89eca1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -3204,14 +3204,14 @@ def test_on_abort(self):

expectedOutput = "Module['onAbort'] was called"

# trigger onAbort by intentionally causing startup to fail
os.remove('a.out.wasm')

f = open('a.out.js', 'a')
f.write("Module['onAbort'] = function () { console.log('%s') }" % expectedOutput)
f.close()

devnull = open(os.devnull, 'w')
self.assertContained(expectedOutput, run_js('a.out.js', stderr=devnull))
devnull.close()
self.assertContained(expectedOutput, run_js('a.out.js')

def test_no_exit_runtime(self):
open('code.cpp', 'w').write(r'''
Expand Down

0 comments on commit a89eca1

Please sign in to comment.