Browse Source

[tests] fence tests that relies on the analyzer optimization

Simon Krajewski 6 years ago
parent
commit
b326cf4707
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/unit/src/unit/TestSyntaxModule.hx

+ 2 - 0
tests/unit/src/unit/TestSyntaxModule.hx

@@ -23,6 +23,7 @@ class TestSyntaxModule extends Test {
 		eq(o.field, value);
 	}
 
+	#if analyzer_optimize
 	function testConstruct() {
 		var className:String =
 			#if php "\\unit\\_TestSyntaxModule\\Construct";
@@ -40,6 +41,7 @@ class TestSyntaxModule extends Test {
 		t(Std.is(b, Construct));
 		eq(10, b.value);
 	}
+	#end
 #end
 }