Skip to content

Commit

Permalink
Test262: fixed unstable fs test.
Browse files Browse the repository at this point in the history
Ensuring that symlink file is removed even if regular file does not
exist.
  • Loading branch information
xeioex committed May 30, 2024
1 parent 0738a59 commit efe546c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/fs/methods.t.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ let stat_tests = () => [

/* making symbolic link. */

try { fs.unlinkSync(fname); fs.unlinkSync(lname); } catch (e) {}
try { fs.unlinkSync(fname); } catch (e) {}
try { fs.unlinkSync(lname); } catch (e) {}

fs.writeFileSync(fname, fname);

Expand Down

0 comments on commit efe546c

Please sign in to comment.