Skip to content

Commit

Permalink
Adds more logic to debug Windows testing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dylon committed Nov 20, 2024
1 parent 5ba153f commit 3a4cad2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/src/lfortran-accessors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ export class LFortranCLIAccessor implements LFortranAccessor {
}

try {
try {
fs.accessSync(lfortranPath, fs.constants.X_OK);
console.debug("[%s] is executable", lfortranPath);
} catch (err) {
console.error("[%s] is NOT executable", lfortranPath);
console.error(err);
}
flags = flags.concat([this.tmpFile.name]);
const response = spawnSync(lfortranPath, flags, {
encoding: 'utf-8',
Expand Down

0 comments on commit 3a4cad2

Please sign in to comment.