Mercurial > projects > dstress
changeset 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 | 1f76d5b2f458 |
children | 709f6451b315 |
files | run/t/throw_07_A.d run/t/throw_07_B.d |
diffstat | 2 files changed, 8 insertions(+), 13 deletions(-) [+] |
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;
--- 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;