Skip to content

Commit

Permalink
Revert to see the failure.
Browse files Browse the repository at this point in the history
Still leaving OS check for delete.
  • Loading branch information
alesj committed Mar 29, 2008
1 parent 3d9f1dd commit a88fb23
Showing 1 changed file with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.jar.Attributes;
import java.util.jar.JarFile;
import java.util.jar.JarOutputStream;
Expand Down Expand Up @@ -101,16 +100,9 @@ public void test1() throws Exception
// System.err.println("modified = " + vf.hasBeenModified());

VirtualFile manifestFile = vf.findChild("META-INF/MANIFEST.MF");
try
{
Manifest manifest = new Manifest(manifestFile.openStream());
String actual = manifest.getMainAttributes().getValue("test");
assertEquals("VFS found the wrong manifest", "v2", actual);
}
catch (IOException e)
{
assertTrue("TMP allowed to fail only under winz", isWindowsOS());
}
Manifest manifest = new Manifest(manifestFile.openStream());
String actual = manifest.getMainAttributes().getValue("test");
assertEquals("VFS found the wrong manifest", "v2", actual);
}
}

Expand Down

0 comments on commit a88fb23

Please sign in to comment.