Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6911112

Tests do not work with CYGWIN: javax/imageio/, javax/script/, and sun/misc/

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • other-libs
    • None
    • b81
    • generic
    • generic

      --------------------------------------------------
      TEST: javax/script/ProviderTest.sh
      JDK under test: C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\build\WINDOW~1\J2SDK-~1


      ACTION: build -- Passed. Build successful
      REASON: User specified action: run build ProviderTest DummyScriptEngineFactory
      TIME: 0.063 seconds
      messages:
      command: build ProviderTest DummyScriptEngineFactory
      reason: User specified action: run build ProviderTest DummyScriptEngineFactory
      elapsed time (seconds): 0.063

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.047 seconds
      messages:
      command: compile C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\script\ProviderTest.java C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\script\DummyScriptEngineFactory.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.047

      ACTION: shell -- Failed. Execution failed: exit code 1
      REASON: User specified action: run shell ProviderTest.sh
      TIME: 0.156 seconds
      messages:
      command: shell ProviderTest.sh []
      reason: User specified action: run shell ProviderTest.sh
      elapsed time (seconds): 0.156
      STDOUT:
      Unrecognized system!
      STDERR:

      TEST RESULT: Failed. Execution failed: exit code 1
      --------------------------------------------------
      --------------------------------------------------
      TEST: javax/imageio/stream/StreamCloserLeak/run_test.sh
      JDK under test: C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\build\WINDOW~1\J2SDK-~1


      ACTION: build -- Passed. Build successful
      REASON: User specified action: run build test.Main
      TIME: 0.235 seconds
      messages:
      command: build test.Main
      reason: User specified action: run build test.Main
      elapsed time (seconds): 0.235

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.188 seconds
      messages:
      command: compile C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\test\Main.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.188
      direct:
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\test\Main.java:42: warning: AppContext is Sun proprietary API and may be removed in a future release
      import sun.awt.AppContext;
                    ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\test\Main.java:43: warning: SunToolkit is Sun proprietary API and may be removed in a future release
      import sun.awt.SunToolkit;
                    ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\test\Main.java:59: warning: AppContext is Sun proprietary API and may be removed in a future release
          private static AppContext mainAppContext = null;
                         ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\test\Main.java:70: warning: SunToolkit is Sun proprietary API and may be removed in a future release
              mainAppContext = SunToolkit.createNewAppContext();
                               ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\test\Main.java:123: warning: AppContext is Sun proprietary API and may be removed in a future release
                      AppContext ctx = null;
                      ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\test\Main.java:125: warning: SunToolkit is Sun proprietary API and may be removed in a future release
                          ctx = SunToolkit.createNewAppContext();
                                ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\test\Main.java:213: warning: AppContext is Sun proprietary API and may be removed in a future release
                      AppContext ctx = SunToolkit.createNewAppContext();
                      ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\test\Main.java:213: warning: SunToolkit is Sun proprietary API and may be removed in a future release
                      AppContext ctx = SunToolkit.createNewAppContext();
                                       ^
      Note: C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\test\Main.java uses or overrides a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\test\Main.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      8 warnings

      ACTION: build -- Passed. Build successful
      REASON: User specified action: run build testapp.Main
      TIME: 0.062 seconds
      messages:
      command: build testapp.Main
      reason: User specified action: run build testapp.Main
      elapsed time (seconds): 0.062

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.062 seconds
      messages:
      command: compile C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\javax\imageio\stream\StreamCloserLeak\testapp\Main.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.062

      ACTION: shell -- Failed. Execution failed: exit code 1
      REASON: User specified action: run shell run_test.sh
      TIME: 0.141 seconds
      messages:
      command: shell run_test.sh []
      reason: User specified action: run shell run_test.sh
      elapsed time (seconds): 0.141
      STDOUT:
      Unrecognized system! CYGWIN_NT-5.1
      The test failed :-(
      exit status was 1
      STDERR:
      Unrecognized system! CYGWIN_NT-5.1

      TEST RESULT: Failed. Execution failed: exit code 1
      --------------------------------------------------
      These tests do not work in a Windows XP CYGWIN 32bit environment, it is assumed the key issue is CYGWIN and the same fixes will solve it for all Windows and both 32bit and 64bit.

      There may be other *.sh tests that have similar issues but have been excluded from running for other reasons, so all *.sh tests should be checked. Expectation is that the same fix may apply to all of them. Some teams may choose to take the opportunity to rewrite the test in java.

      These tests will be added to the jdk/test/ProblemList.txt file.

      Most fail with the pattern "Unrecognized system!".

      FAILED: javax/imageio/stream/StreamCloserLeak/run_test.sh
      FAILED: javax/script/ProviderTest.sh
      FAILED: sun/misc/URLClassPath/ClassnameCharTest.sh
      --------------------------------------------------
      TEST: sun/misc/URLClassPath/ClassnameCharTest.sh
      JDK under test: C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\build\WINDOW~1\J2SDK-~1


      ACTION: build -- Passed. Build successful
      REASON: User specified action: run build HttpCallback HttpServer ClosedChannelList HttpTransaction
      TIME: 0.219 seconds
      messages:
      command: build HttpCallback HttpServer ClosedChannelList HttpTransaction
      reason: User specified action: run build HttpCallback HttpServer ClosedChannelList HttpTransaction
      elapsed time (seconds): 0.219

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.219 seconds
      messages:
      command: compile C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpCallback.java C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpServer.java C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\ClosedChannelList.java C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpTransaction.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 0.219
      direct:
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpTransaction.java:28: warning: MessageHeader is Sun proprietary API and may be removed in a future release
      import sun.net.www.MessageHeader;
                        ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpServer.java:28: warning: MessageHeader is Sun proprietary API and may be removed in a future release
      import sun.net.www.MessageHeader;
                        ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpTransaction.java:41: warning: MessageHeader is Sun proprietary API and may be removed in a future release
          MessageHeader reqheaders, reqtrailers;
          ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpTransaction.java:41: warning: MessageHeader is Sun proprietary API and may be removed in a future release
          MessageHeader reqheaders, reqtrailers;
          ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpTransaction.java:44: warning: MessageHeader is Sun proprietary API and may be removed in a future release
          MessageHeader rspheaders, rsptrailers;
          ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpTransaction.java:44: warning: MessageHeader is Sun proprietary API and may be removed in a future release
          MessageHeader rspheaders, rsptrailers;
          ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpTransaction.java:50: warning: MessageHeader is Sun proprietary API and may be removed in a future release
                              URI requesturi, MessageHeader headers,
                                              ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpTransaction.java:51: warning: MessageHeader is Sun proprietary API and may be removed in a future release
                              String body, MessageHeader trailers, SelectionKey key) {
                                           ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpTransaction.java:129: warning: MessageHeader is Sun proprietary API and may be removed in a future release
                  rspheaders = new MessageHeader ();
                                   ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpTransaction.java:141: warning: MessageHeader is Sun proprietary API and may be removed in a future release
                  rspheaders = new MessageHeader ();
                                   ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpTransaction.java:153: warning: MessageHeader is Sun proprietary API and may be removed in a future release
                  rsptrailers = new MessageHeader ();
                                    ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpServer.java:252: warning: MessageHeader is Sun proprietary API and may be removed in a future release
                      MessageHeader mhead = new MessageHeader (is);
                      ^
      C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\sun\misc\URLClassPath\..\..\..\sun\net\www\httptest\HttpServer.java:252: warning: MessageHeader is Sun proprietary API and may be removed in a future release
                      MessageHeader mhead = new MessageHeader (is);
                                                ^
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      13 warnings

      ACTION: shell -- Failed. Execution failed: exit code 1
      REASON: User specified action: run shell/timeout=300 ClassnameCharTest.sh
      TIME: 0.141 seconds
      messages:
      command: shell ClassnameCharTest.sh []
      reason: User specified action: run shell/timeout=300 ClassnameCharTest.sh
      elapsed time (seconds): 0.141
      STDOUT:
      Unrecognized system!
      STDERR:

      TEST RESULT: Failed. Execution failed: exit code 1
      --------------------------------------------------

            ohair Kelly Ohair (Inactive)
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: