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

JImageExtractTest.java & JImageListTest.java failed in Windows.

    Details

    • Subcomponent:
    • Resolved In Build:
      b22

      Backports

        Description

        Test:
        tools/jimage/JImageExtractTest.java
        tools/jimage/JImageListTest.java

        Platform: Windows Server 2012 R2 6.3
        ---------------------------------------------------------------
        tools/jimage/JImageExtractTest.java Log:
        ---------------------------------------------------------------
        java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at JImageCliTest.runTests(JImageCliTest.java:111)
        at JImageExtractTest.main(JImageExtractTest.java:183)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
        at java.base/java.lang.Thread.run(Thread.java:841)
        Caused by: java.lang.UnsupportedOperationException: 'posix:permissions' not supported as initial attribute
        at java.base/sun.nio.fs.WindowsSecurityDescriptor.fromAttribute(WindowsSecurityDescriptor.java:358)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.createDirectory(WindowsFileSystemProvider.java:493)
        at java.base/java.nio.file.Files.createDirectory(Files.java:682)
        at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:135)
        at java.base/java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:172)
        at java.base/java.nio.file.Files.createTempDirectory(Files.java:958)
        at JImageExtractTest.testExtractToReadOnlyDir(JImageExtractTest.java:147)
        ... 12 more

        JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
        JavaTest Message: shutting down test

        --------------------------------------------------
        tools/jimage/JImageListTest.java Log:
        --------------------------------------------------

        Invoking testListIncludeAllWithRegex
        jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        jimage [list, --include, regex:.*, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        Invoking testListIncludeNoMatchWithRegex
        jimage [list, --include, regex:not_matching, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        Invoking testListIncludeAllWithGlob
        jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        jimage [list, --include, **, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        Invoking testListIncludeAllWithExplicitGlob
        jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        jimage [list, --include, glob:**, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        Invoking testListNotExistingImage
        jimage [list, .\\not_existing_image]
        Invoking testListIncludeNoMatchWithGlob
        jimage [list, --include, not_matching, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        Invoking testListIncludeWithGlob
        jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        jimage [list, --include, /java.base/java/util/zip/**, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        Invoking testListWithUnknownOption
        jimage [list, --unknown]
        Invoking testListIncludeWithRegex
        jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        jimage [list, --include, regex:/java.base/java/text/.*, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        Invoking testListIncludeMultiplePatterns
        jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        jimage [list, --include, glob:/java.base/java/time/**,regex:/java.base/java/util/zip/.*, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        Invoking testListNoImageSpecified
        jimage [list, ]
        Invoking testList
        jimage [list, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        Invoking testListHelp
        jimage [list, -h]
        jimage [list, --help]
        Invoking testListVerbose
        jimage [list, --verbose, C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk11-jdk.60\\windows-x64.jdk\\jdk-11\\lib\\modules]
        Invoking testListNotAnImage
        jimage [list, .\\JImageListTest4950460920592699424not_an_image]
        Invoking testListEmptyFile
        jimage [list, .\\JImageListTest11541317331082153685empty_file]
        ----------System.err:(3/39)----------

        JavaTest Message: Test complete.

        result: Passed. Execution successful


        test result: Error. failed to clean up files after test

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sdama Srinivas Dama (Inactive)
                  Reporter:
                  ssahoo Sibabrata Sahoo
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: