@also_with_wasm_bigint
def test_unistd_io(self):
    self.set_setting('INCLUDE_FULL_LIBRARY', 1)
    self.set_setting('ERROR_ON_UNDEFINED_SYMBOLS', 0)
    orig_compiler_opts = self.emcc_args[:]
    src = open(path_from_root('tests', 'unistd', 'io.c')).read()
    expected = open(path_from_root('tests', 'unistd', 'io.out')).read()
    for fs in ['MEMFS', 'NODEFS']:
        self.clear()
        self.emcc_args = (orig_compiler_opts + [('-D' + fs)])
        if (fs == 'NODEFS'):
            self.emcc_args += ['-lnodefs.js']
        self.do_run(src, expected)
@also_with_wasm_bigint
def test_unistd_io(self):
    self.set_setting('INCLUDE_FULL_LIBRARY', 1)
    self.set_setting('ERROR_ON_UNDEFINED_SYMBOLS', 0)
    orig_compiler_opts = self.emcc_args[:]
    src = open(path_from_root('tests', 'unistd', 'io.c')).read()
    expected = open(path_from_root('tests', 'unistd', 'io.out')).read()
    for fs in ['MEMFS', 'NODEFS']:
        self.clear()
        self.emcc_args = (orig_compiler_opts + [('-D' + fs)])
        if (fs == 'NODEFS'):
            self.emcc_args += ['-lnodefs.js']
        self.do_run(src, expected)