Skip to content

Commit 1ed2b4b

Browse files
authored
fix(test): skip the EACCESS test on Windows
1 parent 3de41a6 commit 1ed2b4b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

arduino-ide-extension/src/test/node/sketches-service-impl.slow-test.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ describe('isAccessibleSketchPath', () => {
6767
expect(actual).to.be.equal(aSketchFilePath);
6868
});
6969

70-
it('should ignore EACCESS', async () => {
70+
it('should ignore EACCESS (non-Windows)', async function () {
71+
if (isWindows) {
72+
// `stat` syscall does not result in an EACCESS on Windows after stripping the file permissions.
73+
// an `open` syscall would, but IDE2 on purpose does not check the files.
74+
// the sketch files are provided by the CLI after loading the sketch.
75+
return this.skip();
76+
}
7177
const sketchFolderPath = join(testDirPath, 'my_sketch');
7278
const mainSketchFilePath = join(sketchFolderPath, 'my_sketch.ino');
7379
await fs.mkdir(sketchFolderPath, { recursive: true });

0 commit comments

Comments
 (0)