@no_windows('https://github.com/emscripten-core/emscripten/issues/8882')
def test_unistd_unlink(self):
    self.clear()
    orig_compiler_opts = self.emcc_args[:]
    src = open(path_from_root('tests', 'unistd', 'unlink.c')).read()
    for fs in ['MEMFS', 'NODEFS']:
        self.emcc_args = (orig_compiler_opts + [('-D' + fs)])
        if (fs == 'NODEFS'):
            self.emcc_args += ['-lnodefs.js']
            if WINDOWS:
                self.emcc_args += ['-DNO_SYMLINK=1']
            if MACOS:
                continue
        self.do_run(src, 'success', force_c=True, js_engines=[NODE_JS])
    if ((not WINDOWS) and (not MACOS)):
        self.emcc_args = (orig_compiler_opts + ['-DNODERAWFS'])
        if (os.geteuid() == 0):
            self.emcc_args += ['-DSKIP_ACCESS_TESTS']
        self.emcc_args += ['-s', 'NODERAWFS=1']
        self.do_run(src, 'success', force_c=True, js_engines=[NODE_JS])
@no_windows('https://github.com/emscripten-core/emscripten/issues/8882')
def test_unistd_unlink(self):
    self.clear()
    orig_compiler_opts = self.emcc_args[:]
    src = open(path_from_root('tests', 'unistd', 'unlink.c')).read()
    for fs in ['MEMFS', 'NODEFS']:
        self.emcc_args = (orig_compiler_opts + [('-D' + fs)])
        if (fs == 'NODEFS'):
            self.emcc_args += ['-lnodefs.js']
            if WINDOWS:
                self.emcc_args += ['-DNO_SYMLINK=1']
            if MACOS:
                continue
        self.do_run(src, 'success', force_c=True, js_engines=[NODE_JS])
    if ((not WINDOWS) and (not MACOS)):
        self.emcc_args = (orig_compiler_opts + ['-DNODERAWFS'])
        if (os.geteuid() == 0):
            self.emcc_args += ['-DSKIP_ACCESS_TESTS']
        self.emcc_args += ['-s', 'NODERAWFS=1']
        self.do_run(src, 'success', force_c=True, js_engines=[NODE_JS])