7162385: TEST_BUG: sun/net/www/protocol/jar/B4957695.java failing again
authorkhazra
Thu, 19 Apr 2012 13:26:06 -0700
changeset 12541 de11282aa666
parent 12540 d6e4c7abdc4a
child 12542 31190502e9e3
7162385: TEST_BUG: sun/net/www/protocol/jar/B4957695.java failing again Summary: Enable finding "foo1.jar" Reviewed-by: chegar
jdk/test/sun/net/www/protocol/jar/B4957695.java
--- a/jdk/test/sun/net/www/protocol/jar/B4957695.java	Thu Apr 19 16:58:34 2012 +0100
+++ b/jdk/test/sun/net/www/protocol/jar/B4957695.java	Thu Apr 19 13:26:06 2012 -0700
@@ -62,7 +62,8 @@
                 readOneRequest(s.getInputStream());
                 try (OutputStreamWriter ow =
                      new OutputStreamWriter((s.getOutputStream()))) {
-                    FileInputStream fin = new FileInputStream("foo1.jar");
+                    FileInputStream fin = new FileInputStream(new File(
+                        System.getProperty("test.src", "."), "foo1.jar"));
                     int length = fin.available();
                     byte[] b = new byte[length-10];
                     fin.read(b, 0, length-10);