Skip to content

Commit c5b3805

Browse files
committed
FileDiffTest.ts marks the copied file as read-only to prevent devs from accidentally modifying it (believing it's the real file)
1 parent 1ce0c6c commit c5b3805

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎libraries/node-core-library/src/FileDiffTest.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export class FileDiffTest {
7676
+ ' the file already exists:\n' + expectedCopyFilename);
7777
}
7878
fsx.copySync(expectedFilePath, expectedCopyFilename);
79+
fsx.chmodSync(expectedCopyFilename, 292); // 292 = 444 octal = "rrr"
7980

8081
throw new Error('The test output file does not match the expected input:\n'
8182
+ actualFilePath);

0 commit comments

Comments
 (0)