We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_dlmalloc_modes
1 parent b4381fb commit d5ca9bbCopy full SHA for d5ca9bb
test/test_other.py
@@ -6720,13 +6720,8 @@ def test_dlmalloc_modes(self):
6720
self.assertContained('double-freed', self.run_js('a.out.js'))
6721
# in debug mode, the double-free is caught
6722
self.run_process([EMXX, 'src.cpp', '-sASSERTIONS=2'])
6723
- seen_error = False
6724
- out = '?'
6725
- try:
6726
- out = self.run_js('a.out.js')
6727
- except Exception:
6728
- seen_error = True
6729
- self.assertTrue(seen_error, out)
+ out = self.run_js('a.out.js', assert_returncode=NON_ZERO)
+ self.assertContained('native code called abort()', out)
6730
6731
def test_mallocs(self):
6732
def run(opts):
0 commit comments