Nice/src/nice/tools/unit/console main.nice,1.3,1.4
Daniel Bonniot <[email protected]>
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/src/nice/tools/unit/console
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7228/src/nice/tools/unit/console
Modified Files:
main.nice
Log Message:
Print correct source file and line numbers in niceunit (#1096734).
Index: main.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/unit/console/main.nice,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** main.nice 24 Feb 2005 15:10:52 -0000 1.3
--- main.nice 24 Feb 2005 16:38:23 -0000 1.4
***************
*** 43,51 ****
start(test) = println(test);
end(test) {}
! failure(test, cause)
{
println("Test failed:\n " + cause);
if (!(iterLocations(test, cause, (?String file, String method, int line) =>
! println("Location: "file" method "method + (line < 0 ? "" : " line "line)))))
cause.printStackTrace();
}
--- 43,54 ----
start(test) = println(test);
end(test) {}
! failure(test, cause, loader)
{
println("Test failed:\n " + cause);
if (!(iterLocations(test, cause, (?String file, String method, int line) =>
! println(""file +
! (line < 0 ? "" : ":"line) +
! " method "method),
! loader)))
cause.printStackTrace();
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click