def test_mmap_file(self):
    for extra_args in [[], ['--no-heap-copy']]:
        self.emcc_args += (['--embed-file', 'data.dat'] + extra_args)
        x = 'data from the file........'
        s = ''
        while (len(s) < 9000):
            if ((len(s) + len(x)) < 9000):
                s += x
                continue
            s += '.'
        assert (len(s) == 9000)
        create_test_file('data.dat', s)
        src = open(path_from_root('tests', 'mmap_file.c')).read()
        self.do_run(src, (((('*\n' + s[0:20]) + '\n') + s[4096:(4096 + 20)]) + '\n*\n'))
def test_mmap_file(self):
    for extra_args in [[], ['--no-heap-copy']]:
        self.emcc_args += (['--embed-file', 'data.dat'] + extra_args)
        x = 'data from the file........'
        s = 
        while (len(s) < 9000):
            if ((len(s) + len(x)) < 9000):
                s += x
                continue
            s += '.'
        assert (len(s) == 9000)
        create_test_file('data.dat', s)
        src = open(path_from_root('tests', 'mmap_file.c')).read()
        self.do_run(src, (((('*\n' + s[0:20]) + '\n') + s[4096:(4096 + 20)]) + '\n*\n'))