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

TEST_BUG: java/lang/instrument/ManifestTest.sh fails with cygwin

    XMLWordPrintable

Details

    Description

      7073295 updated this test to work with Cygwin but unfortunately it is still failing on at least one JPRT client, namely jprt-win-x64-2. If the test can't be fixed in a timely manner or we can't get a "compatible" version of Cygwin onto this JPRT machine then this will need to be added to the ProblemList file so that it's not run.

      The following is a sample log:

      --------------------------------------------------
      TEST: java/lang/instrument/ManifestTest.sh
      JDK under test: (C:\temp\jprt\P1\091042~1.AB2\TESTPR~1\WINDOW~1.2-P)
      java version "1.8.0-internal"
      Java(TM) SE Runtime Environment (build 1.8.0-internal-201108140910.ab23780.tl-b00)
      OpenJDK 64-Bit Server VM (build 22.0-b01, mixed mode)


      ACTION: build -- Passed. Build successful
      REASON: User specified action: run build ManifestTestApp ExampleForBootClassPath
      TIME: 0.047 seconds
      messages:
      command: build ManifestTestApp ExampleForBootClassPath
      reason: User specified action: run build ManifestTestApp ExampleForBootClassPath
      elapsed time (seconds): 0.047

      ACTION: compile -- Passed. Compilation successful
      REASON: .class file out of date or does not exist
      TIME: 0.047 seconds
      messages:
      command: compile C:\temp\jprt\P1\091042.ab23780\source\jdk\test\java\lang\instrument\ManifestTestApp.java C:\temp\jprt\P1\091042.ab23780\source\jdk\test\java\lang\instrument\ExampleForBootClassPath.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/timeout=900 ManifestTest.sh
      TIME: 59.687 seconds
      messages:
      command: shell ManifestTest.sh []
      reason: User specified action: run shell/timeout=900 ManifestTest.sh
      elapsed time (seconds): 59.687
      STDOUT:

      ===== begin test case: defaults =====
      added manifest
      adding: ManifestTestAgent.class(in = 1138) (out= 563)(deflated 50%)
      Hello from ManifestTestAgent!
      isNativeMethodPrefixSupported()=false
      isRedefineClassesSupported()=false
      isRetransformClassesSupported()=false
      Hello from ManifestTestApp!
      ExampleForBootClassPath was not loaded.
      PASS: ManifestTestApp exited with status of 0.
      PASS: found 'Hello from ManifestTestAgent!' in the test output
      FAIL: did NOT find 'ExampleForBootClassPath was not loaded.
      ' in the test output
      FAIL: did NOT find 'isRedefineClassesSupported()=false
      ' in the test output
      FAIL: did NOT find 'isRetransformClassesSupported()=false
      ' in the test output
      FAIL: did NOT find 'isNativeMethodPrefixSupported()=false
      ' in the test output
      ===== end test case: defaults =====

      :
      :


      ===== begin test case: can_set_nmp_line11 =====
      added manifest
      adding: ManifestTestAgent.class(in = 1138) (out= 563)(deflated 50%)
      Hello from ManifestTestAgent!
      isNativeMethodPrefixSupported()=false
      isRedefineClassesSupported()=false
      isRetransformClassesSupported()=false
      Hello from ManifestTestApp!
      ExampleForBootClassPath was not loaded.
      PASS: ManifestTestApp exited with status of 0.
      PASS: found 'Hello from ManifestTestAgent!' in the test output
      FAIL: did NOT find 'ExampleForBootClassPath was not loaded.
      ' in the test output
      FAIL: did NOT find 'isRedefineClassesSupported()=false
      ' in the test output
      FAIL: did NOT find 'isRetransformClassesSupported()=false
      ' in the test output
      FAIL: did NOT find 'isNativeMethodPrefixSupported()=false
      ' in the test output
      ===== end test case: can_set_nmp_line11 =====

      STDERR:
      cp: cannot create regular file `has_trailing_blank /ExampleForBootClassPath.class': No such file or directory
      cp: cannot create regular file ` has_leading_and_trailing_blank /ExampleForBootClassPath.class': No such file or directory

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

      Attachments

        Activity

          People

            sla Staffan Larsen (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: