diff run/t/throw_07_A.d @ 1613:70a23cb6a616

Fix incorrect run.t.throw_07_A/B tests
author Christian Kamm <kamm incasoftware de>
date Sun, 10 May 2009 12:10:34 +0200
parents b8c0195059d9
children
line wrap: on
line diff
--- a/run/t/throw_07_A.d	Sun May 10 11:55:53 2009 +0200
+++ b/run/t/throw_07_A.d	Sun May 10 12:10:34 2009 +0200
@@ -6,7 +6,7 @@
 // @date@	2006-05-11
 // @uri@	http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=7180
 
-module dstress.run.t.throw_07_C;
+module dstress.run.t.throw_07_A;
 
 int status;
 
@@ -62,22 +62,20 @@
 	Tester t = new Tester(&foo);
 
 	try{
-		if(status++ != 5){
-			assert(0);
-		}
+		// status == 1
 		t.test();
 		assert(0);
 	}catch(XException e){
-		if(status++ != 6){
+		if(status++ != 5){
 			assert(0);
 		}
 	}finally{
-		if(status++ != 7){
+		if(status++ != 6){
 			assert(0);
 		}
 	}
 
-	if(status != 8){
+	if(status != 7){
 		assert(0);
 	}
 	return 0;