[Nice-commit] Nice/src/nice/tools/testsuite TestSuite.java,1.16,1.17 TestCase.java,1.32,1.33 FailTes
Brought to you by:
bonniot
|
From: Daniel B. <bo...@us...> - 2005-03-21 21:26:15
|
Update of /cvsroot/nice/Nice/src/nice/tools/testsuite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21106/src/nice/tools/testsuite Modified Files: TestSuite.java TestCase.java FailTestCase.java Log Message: Added support for the no-location testcase keyword. Index: TestSuite.java =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/TestSuite.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** TestSuite.java 11 Jun 2003 18:15:53 -0000 1.16 --- TestSuite.java 21 Mar 2005 21:25:57 -0000 1.17 *************** *** 181,184 **** --- 181,191 ---- } + boolean noLocation = false; + if (type.endsWith(" no-location")) + { + noLocation = true; + type = type.substring(0, type.length() - "no-location".length()).trim(); + } + TestCase res; if (TESTCASE_TYPE_PASS.equalsIgnoreCase(type)) *************** *** 191,194 **** --- 198,202 ---- res.skip = skip; res.isKnownBug = isKnownBug; + res.noLocation = noLocation; return res; } Index: TestCase.java =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/TestCase.java,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** TestCase.java 23 Feb 2005 16:58:09 -0000 1.32 --- TestCase.java 21 Mar 2005 21:25:57 -0000 1.33 *************** *** 101,104 **** --- 101,105 ---- boolean isKnownBug; boolean skip; + boolean noLocation; Index: FailTestCase.java =================================================================== RCS file: /cvsroot/nice/Nice/src/nice/tools/testsuite/FailTestCase.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** FailTestCase.java 12 Mar 2005 10:41:37 -0000 1.13 --- FailTestCase.java 21 Mar 2005 21:25:57 -0000 1.14 *************** *** 43,47 **** compilePackages(); } catch(TestSuiteException e) { ! if (getFailPositions().isEmpty()) { TestNice.getOutput().log("warning", "Failure position not checked"); warning(); --- 43,47 ---- compilePackages(); } catch(TestSuiteException e) { ! if (! noLocation && getFailPositions().isEmpty()) { TestNice.getOutput().log("warning", "Failure position not checked"); warning(); |