Skip to content

Commit

Permalink
[tests] allow running display tests with another haxe version
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Feb 4, 2025
1 parent 3c7f97e commit 0875225
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/display/src/BaseDisplayTestContext.hx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@ using StringTools;
import Types;

class BaseDisplayTestContext {
static var haxeServer = haxeserver.HaxeServerSync.launch("haxe", []);
static var haxeServer = {
var hx = "haxe";
var testHaxe = haxe.macro.Compiler.getDefine("test_haxe");
if (testHaxe != null) {
Sys.putEnv("HAXE_STD_PATH", '${Path.directory(testHaxe)}/std');
hx = testHaxe;
}

haxeserver.HaxeServerSync.launch(hx, []);
}

var dir:String = ".";
var vfs:Vfs;
Expand Down

0 comments on commit 0875225

Please sign in to comment.