BATIK-1196: Run batik tests from junit

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/batik/trunk@1803515 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/build.xml b/build.xml
index 497ab8f..249bbac 100644
--- a/build.xml
+++ b/build.xml
@@ -2571,7 +2571,7 @@
     </path>               
     <mkdir dir="${junit.reports.dir}"/>
     <junit dir="${basedir}" haltonfailure="yes" fork="true" forkmode="once" printsummary="yes" showoutput="true">
-      <!-- <sysproperty key="jawa.awt.headless" value="true"/> -->
+      <sysproperty key="jawa.awt.headless" value="true"/>
       <formatter type="brief" usefile="false"/>
       <formatter type="plain" usefile="true"/>
       <formatter type="xml" usefile="true"/>
diff --git a/test-sources/org/apache/batik/test/xml/JUnitRunnerTestCase.java b/test-sources/org/apache/batik/test/xml/JUnitRunnerTestCase.java
index d0d2b6b..696add9 100644
--- a/test-sources/org/apache/batik/test/xml/JUnitRunnerTestCase.java
+++ b/test-sources/org/apache/batik/test/xml/JUnitRunnerTestCase.java
@@ -102,6 +102,8 @@
     }
 
     private static List<String> EXCLUDE = Arrays.asList(
+"samples/tests/spec/scripting/memoryLeak1.svg",
+"samples/tests/spec/scripting/primaryDoc.svg",
 "PerformanceTestValidator",
 "DoubleStringPerformanceTest",
 "text.selection.latin",