# HG changeset patch # User Christian Kamm # Date 1241950234 -7200 # Node ID 70a23cb6a616aa48d99f350c79a979469852431d # Parent 1f76d5b2f458388969ef0cf39f3f740562b5967c Fix incorrect run.t.throw_07_A/B tests diff -r 1f76d5b2f458 -r 70a23cb6a616 run/t/throw_07_A.d --- 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; diff -r 1f76d5b2f458 -r 70a23cb6a616 run/t/throw_07_B.d --- a/run/t/throw_07_B.d Sun May 10 11:55:53 2009 +0200 +++ b/run/t/throw_07_B.d Sun May 10 12:10:34 2009 +0200 @@ -63,22 +63,19 @@ Tester t = new Tester(&foo); try{ - if(status++ != 5){ - assert(0); - } 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;