def test_unistd_links(self):
    self.clear()
    orig_compiler_opts = self.emcc_args[:]
    for fs in ['MEMFS', 'NODEFS']:
        if (WINDOWS and (fs == 'NODEFS')):
            print('Skipping NODEFS part of this test for test_unistd_links on Windows, since it would require administrative privileges.', file=sys.stderr)
            continue
        self.emcc_args = (orig_compiler_opts + [('-D' + fs)])
        if (fs == 'NODEFS'):
            self.emcc_args += ['-lnodefs.js']
        self.do_run_in_out_file_test('tests', 'unistd', 'links', js_engines=[NODE_JS])
def test_unistd_links(self):
    self.clear()
    orig_compiler_opts = self.emcc_args[:]
    for fs in ['MEMFS', 'NODEFS']:
        if (WINDOWS and (fs == 'NODEFS')):
            print('Skipping NODEFS part of this test for test_unistd_links on Windows, since it would require administrative privileges.', file=sys.stderr)
            continue
        self.emcc_args = (orig_compiler_opts + [('-D' + fs)])
        if (fs == 'NODEFS'):
            self.emcc_args += ['-lnodefs.js']
        self.do_run_in_out_file_test('tests', 'unistd', 'links', js_engines=[NODE_JS])