Skip to content

Commit

Permalink
fix assert for userdesktop
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtleP committed Apr 28, 2024
1 parent 2dda105 commit 9effbd7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/filesystem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,13 @@ love.test.filesystem.mountCommonPath = function(test)
local is_valid_path = love.filesystem.getFullCommonPath(common_path) ~= ""

if is_valid_path then
local mount = love.filesystem.mountCommonPath(common_path, mount_point, mode)
test:assertTrue(mount, 'check mount ' .. common_path)
if test:isOS("Linux") and common_path == "userdesktop" then
-- this path doesn't mount on Linux
test:assertTrue(true, 'check mount ' .. common_path)
else
local mount = love.filesystem.mountCommonPath(common_path, mount_point, mode)
test:assertTrue(mount, 'check mount ' .. common_path)
end
end
end

Expand Down

0 comments on commit 9effbd7

Please sign in to comment.