Fix file access tests failing on older Android devices

This commit is contained in:
Anish Kumar 2026-02-01 21:35:47 +05:30
parent 98782b6c8c
commit ddffef6fb1

View file

@ -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)