362
362
363
363
-- love.filesystem.mountFullPath
364
364
love .test .filesystem .mountFullPath = function (test )
365
+ if love ._os == ' Android' then
366
+ test :skipTest (' getSource() mounting is not supported for .love files' )
367
+ return
368
+ end
369
+
365
370
-- mount something in the working directory
366
371
local mount = love .filesystem .mountFullPath (love .filesystem .getSource () .. ' /tests' , ' tests' , ' read' )
367
372
test :assertTrue (mount , ' check can mount' )
375
380
376
381
-- love.filesystem.unmountFullPath
377
382
love .test .filesystem .unmountFullPath = function (test )
383
+ if love ._os == ' Android' then
384
+ test :skipTest (' getSource() mounting is not supported for .love files' )
385
+ return
386
+ end
387
+
378
388
-- try unmounting something we never mounted
379
389
local unmount1 = love .filesystem .unmountFullPath (love .filesystem .getSource () .. ' /faker' )
380
390
test :assertFalse (unmount1 , ' check not mounted to start with' )
@@ -393,7 +403,7 @@ love.test.filesystem.mountCommonPath = function(test)
393
403
local mount3 = love .filesystem .mountCommonPath (' userhome' , ' userhome' , ' readwrite' )
394
404
local mount4 = love .filesystem .mountCommonPath (' userappdata' , ' userappdata' , ' readwrite' )
395
405
-- userdesktop isnt valid on linux
396
- if love .system . getOS () ~= ' Linux' then
406
+ if love ._os ~= ' Linux' and love . _os ~= ' Android ' then
397
407
local mount5 = love .filesystem .mountCommonPath (' userdesktop' , ' userdesktop' , ' readwrite' )
398
408
test :assertTrue (mount5 , ' check mount userdesktop' )
399
409
end
0 commit comments