From: Bryan T. <tho...@us...> - 2007-02-22 16:59:06
|
Update of /cvsroot/cweb/bigdata-rdf/src/test/com/bigdata/rdf/inf In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv16203/src/test/com/bigdata/rdf/inf Modified Files: TestFullForwardClosure.java TestMagicSets.java AbstractInferenceEngineTestCase.java Removed Files: TestTempStore.java Log Message: Lots of little changes to get the test suites to use temporary files and to remove them when tests complete. At present, this only helps if the test succeeds. You need to do a try {} finally {} to get the tests to remove their files on failure. Index: AbstractInferenceEngineTestCase.java =================================================================== RCS file: /cvsroot/cweb/bigdata-rdf/src/test/com/bigdata/rdf/inf/AbstractInferenceEngineTestCase.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** AbstractInferenceEngineTestCase.java 17 Feb 2007 03:08:00 -0000 1.5 --- AbstractInferenceEngineTestCase.java 22 Feb 2007 16:58:58 -0000 1.6 *************** *** 149,153 **** public void tearDown() { ! store.close(); } --- 149,154 ---- public void tearDown() { ! if (store.isOpen()) ! store.closeAndDelete(); } Index: TestFullForwardClosure.java =================================================================== RCS file: /cvsroot/cweb/bigdata-rdf/src/test/com/bigdata/rdf/inf/TestFullForwardClosure.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TestFullForwardClosure.java 6 Feb 2007 23:06:44 -0000 1.3 --- TestFullForwardClosure.java 22 Feb 2007 16:58:58 -0000 1.4 *************** *** 93,96 **** --- 93,98 ---- store.commit(); + store.closeAndDelete(); + } Index: TestMagicSets.java =================================================================== RCS file: /cvsroot/cweb/bigdata-rdf/src/test/com/bigdata/rdf/inf/TestMagicSets.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TestMagicSets.java 17 Feb 2007 03:08:00 -0000 1.5 --- TestMagicSets.java 22 Feb 2007 16:58:58 -0000 1.6 *************** *** 235,238 **** --- 235,240 ---- assertTrue(answerSet.containsStatement(z, rdfType, A)); + store.closeAndDelete(); + } --- TestTempStore.java DELETED --- |