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

MissingResourceCauseTestRun.java fails if run by root

XMLWordPrintable

    • b04
    • generic
    • generic

        When run the testcase test/jdk/java/util/ResourceBundle/Control/MissingResourceCauseTestRun.java with root user, this testcase will fails.

        The test log snippet:
        Output and diagnostic info for process 3751700 was saved into 'pid-3751700-output.log'
        Exception in thread "main" java.lang.RuntimeException: getBundle("UnreadableRB") doesn't throw class java.io.IOException
                at MissingResourceCauseTest.callGetBundle(MissingResourceCauseTest.java:53)
                at MissingResourceCauseTest.callGetBundle(MissingResourceCauseTest.java:45)
                at MissingResourceCauseTest.main(MissingResourceCauseTest.java:38)

        Command line: [chmod 666 UnreadableRB.properties]
        [2024-06-15T09:13:10.286868929Z] Gathering output for process 3751721
        [2024-06-15T09:13:10.287301901Z] Waiting for completion for process 3751721
        [2024-06-15T09:13:10.287445746Z] Waiting for completion finished for process 3751721
        Output and diagnostic info for process 3751721 was saved into 'pid-3751721-output.log'



        STDERR:
        java.lang.RuntimeException: Execution of the test failed. Unexpected exit code: 1
                at MissingResourceCauseTestRun.runCmd(MissingResourceCauseTestRun.java:95)
                at MissingResourceCauseTestRun.main(MissingResourceCauseTestRun.java:60)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
                at java.base/java.lang.reflect.Method.invoke(Method.java:580)
                at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
                at java.base/java.lang.Thread.run(Thread.java:1575)

              syan Sendao Yan
              syan Sendao Yan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: