Skip to content

Commit

Permalink
LDEV-5264 skip windows specific locking tests on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jan 21, 2025
1 parent 77d477d commit 0929555
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/functions/DirectoryDelete.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
expect( error ).notToBe( "" );
}

public function testDirectoryNonEmptyDeleteLocked() localMode="modern" {
public function testDirectoryNonEmptyDeleteLocked() localMode="modern" {
if (!isWindows()) return;
dirEmpty = parent & "/notEmptyResLocked/";
directoryCreate(dirEmpty);
var src = getTempFile(dirEmpty,"empty-locked","txt");
Expand All @@ -105,4 +106,8 @@
expect( error ).notToBe( "" );
}

private function isWindows(){
return (server.os.name contains "windows");
}

}
1 change: 1 addition & 0 deletions test/functions/FileDelete.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase" {
});

it(title = "Checking FileDelete() file in use", body = function( currentSpec ) {
if (!isWindows()) return;
var src = variables.dir & "locked.txt";

systemOutput( "file in use", true );
Expand Down

0 comments on commit 0929555

Please sign in to comment.