Browse Source

run tests without -D analyzer

Simon Krajewski 10 years ago
parent
commit
b9e8ac656c
2 changed files with 3 additions and 1 deletions
  1. 1 1
      tests/unit/compile-each.hxml
  2. 2 0
      tests/unit/src/unit/issues/Issue3861.hx

+ 1 - 1
tests/unit/compile-each.hxml

@@ -5,4 +5,4 @@
 -resource res1.txt@re/s?!%[]))("'1.txt
 -resource res2.bin@re/s?!%[]))("'1.bin
 -dce full
--D analyzer
+#-D analyzer

+ 2 - 0
tests/unit/src/unit/issues/Issue3861.hx

@@ -2,9 +2,11 @@ package unit.issues;
 
 class Issue3861 extends unit.Test {
 	function test() {
+		#if analyzer
 		var a;
 		var b = function() return a;
 		a = 2;
 		eq(2, b());
+		#end
 	}
 }