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

These tests do not work with CYGWIN: java/util

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6u28, 7
    • Fix Version/s: 7
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b81
    • CPU:
      generic, x86
    • OS:
      generic, windows_2000, windows_7

      Backports

        Description

        --------------------------------------------------
        TEST: java/util/ServiceLoader/basic.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 Basic Load FooService FooProvider1 FooProvider2 FooProvider3
        TIME: 0.047 seconds
        messages:
        command: build Basic Load FooService FooProvider1 FooProvider2 FooProvider3
        reason: User specified action: run build Basic Load FooService FooProvider1 FooProvider2 FooProvider3
        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:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\java\util\ServiceLoader\Basic.java C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\java\util\ServiceLoader\Load.java C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\java\util\ServiceLoader\FooService.java C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\java\util\ServiceLoader\FooProvider1.java C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\java\util\ServiceLoader\FooProvider2.java C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\java\util\ServiceLoader\FooProvider3.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.047

        ACTION: shell -- Failed. Execution failed: exit code 9
        REASON: User specified action: run shell basic.sh
        TIME: 4.75 seconds
        messages:
        command: shell basic.sh []
        reason: User specified action: run shell basic.sh
        elapsed time (seconds): 4.75
        STDOUT:
        Initializing...

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;.;/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.test;p2.jar' -Djava.ext.dirs=/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.ext Basic
        java.util.ServiceLoader[FooService]

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.test' Load FooProvider1
        java.util.ServiceLoader[FooService]
        Exception in thread "main" java.lang.Exception: Missing providers: [FooProvider1]
        at Load.main(Load.java:75)

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;.;p2.jar' Load FooProvider2
        java.util.ServiceLoader[FooService]
        Provider found: FooProvider2

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader -Djava.ext.dirs=/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.ext Load FooProvider3
        java.util.ServiceLoader[FooService]
        Exception in thread "main" java.lang.Exception: Missing providers: [FooProvider3]
        at Load.main(Load.java:75)

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.test;p2.jar' Load FooProvider1 FooProvider2
        java.util.ServiceLoader[FooService]
        Exception in thread "main" java.lang.Exception: Wrong provider FooProvider2; expected FooProvider1
        at Load.main(Load.java:68)

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.test' -Djava.ext.dirs=/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.ext Load FooProvider3 FooProvider1
        java.util.ServiceLoader[FooService]
        Exception in thread "main" java.lang.Exception: Missing providers: [FooProvider3, FooProvider1]
        at Load.main(Load.java:75)

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.test;p2.jar' -Djava.ext.dirs=/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.ext Load FooProvider3 FooProvider1 FooProvider2
        java.util.ServiceLoader[FooService]
        Exception in thread "main" java.lang.Exception: Wrong provider FooProvider2; expected FooProvider3
        at Load.main(Load.java:68)

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.test;p2.jar' -Djava.ext.dirs=/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.ext Load -i FooProvider3
        java.util.ServiceLoader[FooService]
        Exception in thread "main" java.lang.Exception: Missing providers: [FooProvider3]
        at Load.main(Load.java:75)

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;.;x.meta' Load fail
        java.util.ServiceLoader[FooService]
        Failed as expected: java.util.ServiceConfigurationError: FooService: Provider FooProvider42 not found

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;.;x.meta' Load fail
        java.util.ServiceLoader[FooService]
        Failed as expected: java.util.ServiceConfigurationError: FooService: file:/C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.meta/META-INF/services/FooService:1: Illegal configuration-file syntax

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;.;x.meta' Load fail
        java.util.ServiceLoader[FooService]
        Failed as expected: java.util.ServiceConfigurationError: FooService: file:/C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.meta/META-INF/services/FooService:1: Illegal provider-class name: 9234

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;.;x.meta' Load fail
        java.util.ServiceLoader[FooService]
        Failed as expected: java.util.ServiceConfigurationError: FooService: file:/C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.meta/META-INF/services/FooService:1: Illegal provider-class name: X!

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;.;x.meta' Load fail
        java.util.ServiceLoader[FooService]
        Failed as expected: java.util.ServiceConfigurationError: FooService: Provider java.lang.Object could not be instantiated: java.lang.ClassCastException: Cannot cast java.lang.Object to FooService

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.test;x.meta' Load FooProvider1 fail
        java.util.ServiceLoader[FooService]
        Exception in thread "main" java.util.ServiceConfigurationError: FooService: Provider FooProvider42 not found
        at java.util.ServiceLoader.fail(ServiceLoader.java:231)
        at java.util.ServiceLoader.access$400(ServiceLoader.java:181)
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:367)
        at java.util.ServiceLoader$1.next(ServiceLoader.java:438)
        at Load.main(Load.java:58)

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;x.meta;/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.test' Load fail FooProvider1
        java.util.ServiceLoader[FooService]
        Failed as expected: java.util.ServiceConfigurationError: FooService: Provider FooProvider42 not found
        Exception in thread "main" java.lang.Exception: Missing providers: [FooProvider1]
        at Load.main(Load.java:75)

        + C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1/bin/java -cp 'C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/ServiceLoader;/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.test;x.meta;;p2.jar' -Djava.ext.dirs=/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/scratch/x.ext Load FooProvider3 FooProvider1 fail FooProvider2
        java.util.ServiceLoader[FooService]
        Exception in thread "main" java.util.ServiceConfigurationError: FooService: Provider FooProvider42 not found
        at java.util.ServiceLoader.fail(ServiceLoader.java:231)
        at java.util.ServiceLoader.access$400(ServiceLoader.java:181)
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:367)
        at java.util.ServiceLoader$1.next(ServiceLoader.java:438)
        at Load.main(Load.java:58)

        9 case(s) failed
        STDERR:

        TEST RESULT: Failed. Execution failed: exit code 9
        --------------------------------------------------
        --------------------------------------------------
        TEST: java/util/ResourceBundle/Bug6299235Test.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 Bug6299235Test
        TIME: 0.063 seconds
        messages:
        command: build Bug6299235Test
        reason: User specified action: run build Bug6299235Test
        elapsed time (seconds): 0.063

        ACTION: compile -- Passed. Compilation successful
        REASON: .class file out of date or does not exist
        TIME: 0.063 seconds
        messages:
        command: compile C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\java\util\ResourceBundle\Bug6299235Test.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.063
        direct:
        C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\java\util\ResourceBundle\Bug6299235Test.java:29: warning: CoreResourceBundleControl is Sun proprietary API and may be removed in a future release
        import sun.util.CoreResourceBundleControl;
                       ^
        C:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\java\util\ResourceBundle\Bug6299235Test.java:49: warning: CoreResourceBundleControl is Sun proprietary API and may be removed in a future release
                                                                        CoreResourceBundleControl.getRBControlInstance());
                                                                        ^
        2 warnings

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

        TEST RESULT: Failed. Execution failed: exit code 1
        --------------------------------------------------
        --------------------------------------------------
        TEST: java/util/ResourceBundle/Control/ExpirationTest.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 ExpirationTest
        TIME: 0.047 seconds
        messages:
        command: build ExpirationTest
        reason: User specified action: run build ExpirationTest
        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:\cygwin\home\ohair\hgrepos\openjdk7\jdk7-tl\jdk\test\java\util\ResourceBundle\Control\ExpirationTest.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=300 ExpirationTest.sh
        TIME: 29.625 seconds
        messages:
        command: shell ExpirationTest.sh []
        reason: User specified action: run shell/timeout=300 ExpirationTest.sh
        elapsed time (seconds): 29.625
        STDOUT:
        Checking latency... done
        Starting test with properties files at 18:14:33
        Properties files have been created at 18:14:33
        Updated 'ExpirationData_de.properties' and added 'ExpirationData_de_AT.properties' at 18:14:53
        Test with properties files: FAILED
        STDERR:
        Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name ExpirationData, locale de
        at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1539)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1278)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:850)
        at ExpirationTest.main(ExpirationTest.java:59)

        TEST RESULT: Failed. Execution failed: exit code 1
        --------------------------------------------------
        --------------------------------------------------
        TEST: java/util/Currency/PropertiesTest.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 PropertiesTest
        TIME: 0.125 seconds
        messages:
        command: build PropertiesTest
        reason: User specified action: run build PropertiesTest
        elapsed time (seconds): 0.125

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

        ACTION: shell -- Failed. Execution failed: exit code 1
        REASON: User specified action: run shell/timeout=600 PropertiesTest.sh
        TIME: 0.172 seconds
        messages:
        command: shell PropertiesTest.sh []
        reason: User specified action: run shell/timeout=600 PropertiesTest.sh
        elapsed time (seconds): 0.172
        STDOUT:
        TESTSRC=C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/test/java/util/Currency
        TESTJAVA=C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/WINDOW~1/J2SDK-~1
        TESTCLASSES=C:/cygwin/home/ohair/hgrepos/openjdk7/jdk7-tl/jdk/build/windows-i586/testoutput/jdk_util/JTwork/classes/java/util/Currency
        CLASSPATH=
        Unrecognized system!
        STDERR:

        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: java/util/Currency/PropertiesTest.sh
        FAILED: java/util/PluggableLocale/BreakIteratorProviderTest.sh
        FAILED: java/util/PluggableLocale/ClasspathTest.sh
        FAILED: java/util/PluggableLocale/CollatorProviderTest.sh
        FAILED: java/util/PluggableLocale/CurrencyNameProviderTest.sh
        FAILED: java/util/PluggableLocale/DateFormatProviderTest.sh
        FAILED: java/util/PluggableLocale/DateFormatSymbolsProviderTest.sh
        FAILED: java/util/PluggableLocale/DecimalFormatSymbolsProviderTest.sh
        FAILED: java/util/PluggableLocale/GenericTest.sh
        FAILED: java/util/PluggableLocale/LocaleNameProviderTest.sh
        FAILED: java/util/PluggableLocale/NumberFormatProviderTest.sh
        FAILED: java/util/PluggableLocale/TimeZoneNameProviderTest.sh
        FAILED: java/util/ResourceBundle/Bug6299235Test.sh
        FAILED: java/util/ResourceBundle/Control/ExpirationTest.sh
        FAILED: java/util/ServiceLoader/basic.sh

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: