March 14, 2013 [Issue 5091] main runs after unittests | ||||
---|---|---|---|---|
| ||||
Posted in reply to Simen Kjaeraas | http://d.puremagic.com/issues/show_bug.cgi?id=5091 --- Comment #10 from Martin Nowak <code@dawg.eu> 2013-03-13 20:42:41 PDT --- This always confused me a little because the documentation is inconsistent. http://dlang.org/phobos/core_runtime.html#moduleUnitTester http://dlang.org/phobos/core_runtime.html#runModuleUnitTests One could also require that test failure is indicated by an exception. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 14, 2013 [Issue 5091] main runs after unittests | ||||
---|---|---|---|---|
| ||||
Posted in reply to Simen Kjaeraas | http://d.puremagic.com/issues/show_bug.cgi?id=5091 --- Comment #11 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-03-13 20:49:45 PDT --- (In reply to comment #10) > This always confused me a little because the documentation is inconsistent. http://dlang.org/phobos/core_runtime.html#moduleUnitTester http://dlang.org/phobos/core_runtime.html#runModuleUnitTests Yes me too. > One could also require that test failure is indicated by an exception. Speaking of which I just noticed that `runAll` doesn't wrap `runModuleUnitTests()` in a try/catch. That seems like a bug to me. rt_init does however. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 14, 2013 [Issue 5091] main runs after unittests | ||||
---|---|---|---|---|
| ||||
Posted in reply to Simen Kjaeraas | http://d.puremagic.com/issues/show_bug.cgi?id=5091 --- Comment #12 from Martin Nowak <code@dawg.eu> 2013-03-13 21:58:50 PDT --- (In reply to comment #11) > Speaking of which I just noticed that `runAll` doesn't wrap `runModuleUnitTests()` in a try/catch. That seems like a bug to me. > It does https://github.com/D-Programming-Language/druntime/blob/master/src/rt/dmain2.d#L613. tryExec(&runAll); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation