Skip to content

Commit

Permalink
add some debug
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jan 21, 2025
1 parent fb7a744 commit 27489ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/tickets/LDEV2410.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{

var info = getFileInfo( testfile );
var mode = FileInfo( testfile ).mode;
systemOutput("initial mode was #mode#", true);
systemOutput(FileInfo( testfile ), true);
expect( info.canWrite ).toBe( true );
FileWrite( testfile, "I am in normal (writable) file" );

Expand All @@ -42,8 +44,10 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
FileWrite( testfile, "I am in readonly file" );
}).toThrow();

systemOutput("setting mode to #mode#", true);
FileSetAccessMode( testfile, mode );
info = getFileInfo( testfile );
systemOutput(FileInfo( testfile ), true);
expect( info.canWrite ).toBe( true );
expect (function(){
FileWrite( testfile, "I am in normal (writable) file" );
Expand Down

0 comments on commit 27489ce

Please sign in to comment.