Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
October 26, 2013 Unittest assertion failure messages in OSX | ||||
---|---|---|---|---|
| ||||
With git master using OSX Mavericks I'm noticing that I'm no longer seeing any assertion failure messages from inside unittest blocks. For example with: import std.stdio; unittest { writeln("Reached unittest."); assert(0); writeln("After failed assertion."); } Output: rdmd -main -unittest test2.d Reached unittest. Replacing unittest with void main(), the assertion message prints out properly. Is this something that's just odd with my setup, or is this happening to others running OSX / git master? |
October 26, 2013 Re: Unittest assertion failure messages in OSX | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kapps | On 2013-10-26 09:12, Kapps wrote: > With git master using OSX Mavericks I'm noticing that I'm no longer > seeing any assertion failure messages from inside unittest blocks. > > For example with: > import std.stdio; > > unittest { > writeln("Reached unittest."); > assert(0); > writeln("After failed assertion."); > } > > Output: > rdmd -main -unittest test2.d > Reached unittest. > > > Replacing unittest with void main(), the assertion message prints out > properly. Is this something that's just odd with my setup, or is this > happening to others running OSX / git master? I can confirm that on Mac OS X Mountain Lion as well. -- /Jacob Carlborg |
October 26, 2013 Re: Unittest assertion failure messages in OSX | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kapps | On 2013-10-26 09:12, Kapps wrote: > With git master using OSX Mavericks I'm noticing that I'm no longer > seeing any assertion failure messages from inside unittest blocks. > > For example with: > import std.stdio; > > unittest { > writeln("Reached unittest."); > assert(0); > writeln("After failed assertion."); > } > > Output: > rdmd -main -unittest test2.d > Reached unittest. > > > Replacing unittest with void main(), the assertion message prints out > properly. Is this something that's just odd with my setup, or is this > happening to others running OSX / git master? Reported as: http://d.puremagic.com/issues/show_bug.cgi?id=11362. -- /Jacob Carlborg |
October 26, 2013 Re: Unittest assertion failure messages in OSX | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On 10/26/2013 05:09 AM, Jacob Carlborg wrote:
> Reported as: http://d.puremagic.com/issues/show_bug.cgi?id=11362.
Same on Linux. :( I have already updated the bug.
Bad bug, bad!
Ali
|
October 28, 2013 Re: Unittest assertion failure messages in OSX | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kapps | On 10/26/2013 12:12 AM, Kapps wrote: > With git master using OSX Mavericks I'm noticing that I'm no longer > seeing any assertion failure messages from inside unittest blocks. > > For example with: > import std.stdio; > > unittest { > writeln("Reached unittest."); > assert(0); > writeln("After failed assertion."); > } > > Output: > rdmd -main -unittest test2.d > Reached unittest. > > > Replacing unittest with void main(), the assertion message prints out > properly. Is this something that's just odd with my setup, or is this > happening to others running OSX / git master? Ping. Could others chime in and reopen this bug please. It has just been closed as WORKSFORWALTER. ;) http://d.puremagic.com/issues/show_bug.cgi?id=11362 Ali |
October 28, 2013 Re: Unittest assertion failure messages in OSX | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On 10/27/2013 11:59 PM, Ali Çehreli wrote:
> Could others chime in and reopen this bug please. It has just been closed as
> WORKSFORWALTER. ;)
>
> http://d.puremagic.com/issues/show_bug.cgi?id=11362
Correction: it worksforme in the 2.064 beta. The commit that broke it occurs only in the 2.065 master.
|
October 28, 2013 Re: Unittest assertion failure messages in OSX | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On 10/28/2013 12:31 AM, Walter Bright wrote:
> On 10/27/2013 11:59 PM, Ali Çehreli wrote:
>> Could others chime in and reopen this bug please. It has just been
>> closed as
>> WORKSFORWALTER. ;)
>>
>> http://d.puremagic.com/issues/show_bug.cgi?id=11362
>
> Correction: it worksforme in the 2.064 beta. The commit that broke it
> occurs only in the 2.065 master.
Thank you! :)
Ali
|
Copyright © 1999-2021 by the D Language Foundation