def test_minimal_runtime_memorygrowth(self):
    if self.has_changed_setting('ALLOW_MEMORY_GROWTH'):
        self.skipTest('test needs to modify memory growth')
    self.set_setting('MINIMAL_RUNTIME', 1)
    src = open(path_from_root('tests', 'core', 'test_memorygrowth.c')).read()
    self.do_run(src, 'OOM', assert_returncode=None)
    self.emcc_args += ['-Wno-almost-asm', '-s', 'ALLOW_MEMORY_GROWTH']
    self.do_run(src, '*pre: hello,4.955*\n*hello,4.955*\n*hello,4.955*')
def test_minimal_runtime_memorygrowth(self):
    if self.has_changed_setting('ALLOW_MEMORY_GROWTH'):
        self.skipTest('test needs to modify memory growth')
    self.set_setting('MINIMAL_RUNTIME', 1)
    src = open(path_from_root('tests', 'core', 'test_memorygrowth.c')).read()
    self.do_run(src, 'OOM', assert_returncode=None)
    self.emcc_args += ['-Wno-almost-asm', '-s', 'ALLOW_MEMORY_GROWTH']
    self.do_run(src, '*pre: hello,4.955*\n*hello,4.955*\n*hello,4.955*')