Fix file access tests failing on older Android devices
This commit is contained in:
parent
98782b6c8c
commit
ddffef6fb1
1 changed files with 6 additions and 2 deletions
|
|
@ -9,8 +9,12 @@ func run_tests():
|
|||
__exec_test(test_internal_app_dir_access)
|
||||
__exec_test(test_internal_cache_dir_access)
|
||||
__exec_test(test_external_app_dir_access)
|
||||
__exec_test(test_downloads_dir_access)
|
||||
__exec_test(test_documents_dir_access)
|
||||
|
||||
# Scoped storage: Testing access to Downloads and Documents directory.
|
||||
var version = JavaClassWrapper.wrap("android.os.Build$VERSION")
|
||||
if version.SDK_INT >= 29:
|
||||
__exec_test(test_downloads_dir_access)
|
||||
__exec_test(test_documents_dir_access)
|
||||
|
||||
func _test_dir_access(dir_path: String, data_file_content: String) -> void:
|
||||
print("Testing access to " + dir_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue