Nice/src/nice/tools/ant TestListener.nice,1.2,1.3

Daniel Bonniot <[email protected]>
Newsgroups gmane.comp.lang.nice.cvs
Message-ID <[email protected]>
Update of /cvsroot/nice/Nice/src/nice/tools/ant
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23223/src/nice/tools/ant

Modified Files:
	TestListener.nice 
Log Message:
Print correct source file and line numbers in niceunit (#1096734).


Index: TestListener.nice
===================================================================
RCS file: /cvsroot/nice/Nice/src/nice/tools/ant/TestListener.nice,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TestListener.nice	18 Feb 2004 17:45:10 -0000	1.2
--- TestListener.nice	25 Feb 2005 03:11:39 -0000	1.3
***************
*** 42,46 ****
    }
  
!   failure(test, cause)
    {
      failures++;
--- 42,46 ----
    }
  
!   failure(test, cause, loader)
    {
      failures++;
***************
*** 50,55 ****
      let couldPrint = iterLocations
        (test, cause, (?String file, String method, int line) =>
!        println("Location: " + file + " method " + method + 
! 	       (line < 0 ? "" : " line " + line)));
  
      if (! couldPrint)
--- 50,56 ----
      let couldPrint = iterLocations
        (test, cause, (?String file, String method, int line) =>
!        println("Location: " + file + " method " + method +
! 	       (line < 0 ? "" : " line " + line)),
!        loader);
  
      if (! couldPrint)
***************
*** 62,66 ****
        throw new BuildException(""failures" tests failed", task.getLocation);
  
!     task.log("Unit testing done: "tests" tests successful", 
  	     Project.MSG_INFO);
    }
--- 63,67 ----
        throw new BuildException(""failures" tests failed", task.getLocation);
  
!     task.log("Unit testing done: "tests" tests successful",
  	     Project.MSG_INFO);
    }



-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.