Mercurial > projects > dstress
changeset 1311:721a83317b14
[Issue 776] Unittest section inside a template does not alway execute.
Peter C. Chapin <pchapin@ecet.vtc.edu>
2006-12-30
http://d.puremagic.com/issues/show_bug.cgi?id=776
author | thomask |
---|---|
date | Sun, 31 Dec 2006 14:28:14 +0000 |
parents | bcdd3165128d |
children | eac3a538961a |
files | compile/u/unittest_10_A.d compile/u/unittest_10_B.d compile/u/unittest_10_C.d norun/u/unittest_10_D.d norun/u/unittest_10_E.d norun/u/unittest_10_F.d norun/u/unittest_10_G.d norun/u/unittest_10_H.d reporter.txt |
diffstat | 9 files changed, 142 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/u/unittest_10_A.d Sun Dec 31 14:28:14 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Peter C. Chapin <pchapin@ecet.vtc.edu> +// @date@ 2006-12-30 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=776 +// @desc@ [Issue 776] Unittest section inside a template does not alway execute. + +module /*dstress.*/compile.u.unittest_10_A; + +template A(){ + unittest{ + throw new Exception("dog"); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/u/unittest_10_B.d Sun Dec 31 14:28:14 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Peter C. Chapin <pchapin@ecet.vtc.edu> +// @date@ 2006-12-30 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=776 +// @desc@ [Issue 776] Unittest section inside a template does not alway execute. + +module /*dstress.*/compile.u.unittest_10_B; + +class B(){ + unittest{ + throw new Exception("cat"); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/u/unittest_10_C.d Sun Dec 31 14:28:14 2006 +0000 @@ -0,0 +1,16 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Peter C. Chapin <pchapin@ecet.vtc.edu> +// @date@ 2006-12-30 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=776 +// @desc@ [Issue 776] Unittest section inside a template does not alway execute. + +module /*dstress.*/compile.u.unittest_10_C; + +struct C(){ + unittest{ + throw new Exception("mouse"); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/norun/u/unittest_10_D.d Sun Dec 31 14:28:14 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Peter C. Chapin <pchapin@ecet.vtc.edu> +// @date@ 2006-12-30 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=776 +// @desc@ [Issue 776] Unittest section inside a template does not alway execute. + +// __DSTRESS_DFLAGS__ -unittest + +module /*dstress.*/norun.u.unittest_10_D; +import /*dstress.*/compile.u.unittest_10_A; + +mixin A!(); + +int main(){ + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/norun/u/unittest_10_E.d Sun Dec 31 14:28:14 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Peter C. Chapin <pchapin@ecet.vtc.edu> +// @date@ 2006-12-30 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=776 +// @desc@ [Issue 776] Unittest section inside a template does not alway execute. + +// __DSTRESS_DFLAGS__ -unittest + +module /*dstress.*/norun.u.unittest_10_E; +import /*dstress.*/compile.u.unittest_10_B; + +mixin B!(); + +int main(){ + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/norun/u/unittest_10_F.d Sun Dec 31 14:28:14 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Peter C. Chapin <pchapin@ecet.vtc.edu> +// @date@ 2006-12-30 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=776 +// @desc@ [Issue 776] Unittest section inside a template does not alway execute. + +// __DSTRESS_DFLAGS__ -unittest + +module /*dstress.*/norun.u.unittest_10_F; +import /*dstress.*/compile.u.unittest_10_C; + +mixin C!(); + +int main(){ + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/norun/u/unittest_10_G.d Sun Dec 31 14:28:14 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Peter C. Chapin <pchapin@ecet.vtc.edu> +// @date@ 2006-12-30 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=776 +// @desc@ [Issue 776] Unittest section inside a template does not alway execute. + +// __DSTRESS_DFLAGS__ -unittest + +module /*dstress.*/norun.u.unittest_10_G; +import /*dstress.*/compile.u.unittest_10_B; + +int main(){ + B!() b; + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/norun/u/unittest_10_H.d Sun Dec 31 14:28:14 2006 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Peter C. Chapin <pchapin@ecet.vtc.edu> +// @date@ 2006-12-30 +// @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=776 +// @desc@ [Issue 776] Unittest section inside a template does not alway execute. + +// __DSTRESS_DFLAGS__ -unittest + +module /*dstress.*/norun.u.unittest_10_H; +import /*dstress.*/compile.u.unittest_10_C; + +int main(){ + C!() c; + return 0; +}
--- a/reporter.txt Sun Dec 31 11:02:52 2006 +0000 +++ b/reporter.txt Sun Dec 31 14:28:14 2006 +0000 @@ -110,6 +110,7 @@ Patrick Down Paul Guerra Paul Runde <prunde@consolidated.net> +Peter C. Chapin <pchapin@ecet.vtc.edu> Regan Heath <regan@netwin.co.nz> Rev Robert Atkinson <Robert.Atkinson@gmail.com>