You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2016/06/10 23:28:29 UTC

svn commit: r1747813 - /commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java

Author: ggregory
Date: Fri Jun 10 23:28:29 2016
New Revision: 1747813

URL: http://svn.apache.org/viewvc?rev=1747813&view=rev
Log:
Fix test to run on Windows AND Linux.

Modified:
    commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java

Modified: commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java?rev=1747813&r1=1747812&r2=1747813&view=diff
==============================================================================
--- commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java (original)
+++ commons/proper/bcel/trunk/src/test/java/org/apache/bcel/util/BCELifierTestCase.java Fri Jun 10 23:28:29 2016
@@ -41,13 +41,13 @@ public class BCELifierTestCase {
         File infile = new File(javaClass);
         JavaClass java_class = BCELifier.getJavaClass(infile.getName().replace(".class", ""));
         assertNotNull(java_class);
-        File outfile = new File(workDir,infile.getName().replace(".class", "Creator.java"));
+        File outfile = new File(workDir, infile.getName().replace(".class", "Creator.java"));
         FileOutputStream fos = new FileOutputStream(outfile);
         BCELifier bcelifier = new BCELifier(java_class, fos);
         bcelifier.start();
         fos.close();
         exec(workDir, "javac", "-cp", "classes", outfile.getName());
-        exec(workDir, "java", "-cp", ".:classes", outfile.getName().replace(".java", ""));
+        exec(workDir, "java", "-cp", "." + File.pathSeparator + "classes", outfile.getName().replace(".java", ""));
         final String output = exec(workDir, "javap", "-p", "-c", infile.getName());
         assertEquals(canonHashRef(initial), canonHashRef(output));
     }