[Nice-commit] Nice/src/nice/tools/testsuite TestNice.java,1.29,1.30
Brought to you by:
bonniot
From: <bo...@us...> - 2004-03-02 21:56:33
|
Update of /cvsroot/nice/Nice/src/nice/tools/testsuite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8812/src/nice/tools/testsuite Modified Files: TestNice.java Log Message: Make the testsuite enable assertions, so that they don't have to bet set externally when starting the JVM that will run the testsuite. Index: TestNice.java =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/TestNice.java,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** TestNice.java 26 Jan 2004 12:42:44 -0000 1.29 --- TestNice.java 2 Mar 2004 21:44:27 -0000 1.30 *************** *** 546,550 **** File[] dirs = { getTempFolder(), new File(getRuntime()) }; ! return new nice.tools.util.DirectoryClassLoader(dirs, null); } --- 546,557 ---- File[] dirs = { getTempFolder(), new File(getRuntime()) }; ! ClassLoader res = new nice.tools.util.DirectoryClassLoader(dirs, null); ! try { ! nice.tools.util.JDK.setDefaultAssertionStatus(res, true); ! } ! catch(java.lang.reflect.InvocationTargetException e) { ! System.out.println("WARNING: could not enable assertions"); ! } ! return res; } |