@no_windows('Windows throws EPERM rather than EACCES or EINVAL')
@unittest.skipIf((WINDOWS or (os.geteuid() == 0)), 'Root access invalidates this test by being able to write on readonly files')
def test_unistd_truncate_noderawfs(self):
    self.skipTest('fails on some node versions and OSes, e.g. 10.13.0 on linux')
    self.emcc_args += ['-s', 'NODERAWFS=1']
    self.do_run_in_out_file_test('tests', 'unistd', 'truncate', js_engines=[NODE_JS])
@no_windows('Windows throws EPERM rather than EACCES or EINVAL')
@unittest.skipIf((WINDOWS or (os.geteuid() == 0)), 'Root access invalidates this test by being able to write on readonly files')
def test_unistd_truncate_noderawfs(self):
    self.skipTest('fails on some node versions and OSes, e.g. 10.13.0 on linux')
    self.emcc_args += ['-s', 'NODERAWFS=1']
    self.do_run_in_out_file_test('tests', 'unistd', 'truncate', js_engines=[NODE_JS])