def test_legacy_exported_runtime_numbers(self):

    def test(output_prefix='', args=[]):
        old = self.emcc_args[:]
        self.emcc_args += args
        self.do_run(open(path_from_root('tests', 'core', 'legacy_exported_runtime_numbers.cpp')).read(), open(path_from_root('tests', 'core', (('legacy_exported_runtime_numbers' + output_prefix) + '.txt'))).read(), assert_returncode=None)
        self.emcc_args = old
    test(args=['-DDIRECT'])
    self.set_setting('EXTRA_EXPORTED_RUNTIME_METHODS', [])
    self.set_setting('ASSERTIONS', 1)
    test('_assert')
    self.set_setting('ASSERTIONS', 0)
    self.set_setting('EXTRA_EXPORTED_RUNTIME_METHODS', ['ALLOC_DYNAMIC'])
    test()
def test_legacy_exported_runtime_numbers(self):

    def test(output_prefix=, args=[]):
        old = self.emcc_args[:]
        self.emcc_args += args
        self.do_run(open(path_from_root('tests', 'core', 'legacy_exported_runtime_numbers.cpp')).read(), open(path_from_root('tests', 'core', (('legacy_exported_runtime_numbers' + output_prefix) + '.txt'))).read(), assert_returncode=None)
        self.emcc_args = old
    test(args=['-DDIRECT'])
    self.set_setting('EXTRA_EXPORTED_RUNTIME_METHODS', [])
    self.set_setting('ASSERTIONS', 1)
    test('_assert')
    self.set_setting('ASSERTIONS', 0)
    self.set_setting('EXTRA_EXPORTED_RUNTIME_METHODS', ['ALLOC_DYNAMIC'])
    test()