Skip to content

Commit 2ea107f

Browse files
lilizoeyBromeon
authored andcommitted
fix UB caused by preload weirdness
1 parent 71cf7e5 commit 2ea107f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

itest/godot/TestRunner.gd

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ func _ready():
2626
var rust_runner = IntegrationTests.new()
2727

2828
var gdscript_suites: Array = [
29-
preload("res://ManualFfiTests.gd").new(),
30-
preload("res://gen/GenFfiTests.gd").new(),
31-
preload("res://InheritTests.gd").new()
29+
load("res://ManualFfiTests.gd").new(),
30+
load("res://gen/GenFfiTests.gd").new(),
31+
load("res://InheritTests.gd").new()
3232
]
3333

3434
var gdscript_tests: Array = []
@@ -39,7 +39,7 @@ func _ready():
3939
gdscript_tests.push_back(GDScriptExecutableTestCase.new(suite, method_name))
4040

4141
var special_case_test_suites: Array = [
42-
preload("res://SpecialTests.gd").new(),
42+
load("res://SpecialTests.gd").new(),
4343
]
4444

4545
for suite in special_case_test_suites:

0 commit comments

Comments
 (0)