Browse Source

use mt_build.

Nicolas Cannasse 19 years ago
parent
commit
89611c6b4e
2 changed files with 3 additions and 3 deletions
  1. 2 2
      std/haxe/unit/TestCase.hx
  2. 1 1
      std/haxe/unit/TestRunner.hx

+ 2 - 2
std/haxe/unit/TestCase.hx

@@ -25,12 +25,12 @@
 package haxe.unit;
 import haxe.PosInfos;
 
-class TestCase {
+class TestCase #if mt_build implements mt.Protect #end {
 	public var currentTest : TestStatus;
 
 	public function new( ) {
 	}
-	
+
 	public function setup() : Void {
 	}
 

+ 1 - 1
std/haxe/unit/TestRunner.hx

@@ -106,7 +106,7 @@ class TestRunner {
 		for ( f in fields ){
 			var fname = f;
 			var field = Reflect.field(t, f);
-			if (#if !test_all_methods StringTools.startsWith(fname,"test") && #end Reflect.isFunction(field) ){
+			if ( StringTools.startsWith(fname,"test") && Reflect.isFunction(field) ){
 				t.currentTest = new TestStatus();
 				t.currentTest.classname = Type.getClassName(cl);
 				t.currentTest.method = fname;