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

java/lang/invoke/lambda/LogGeneratedClassesTest.java failed on windows, jtreg report Fail to org.testng.SkipException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • core-libs

    Description

      java/lang/invoke/lambda/LogGeneratedClassesTest.java

      Failed on windows. The "SkipException" is known as "skipped test" by TestNG, but not to jtreg. jtreg will report this as failure.

      (not quite sure whether this should be fixed in jtreg or test itself)

      ----------System.out:(47/2754)----------
      [TestNG] Running:
        java/lang/invoke/lambda/LogGeneratedClassesTest.java

      config LogGeneratedClassesTest.setup(): success
      test LogGeneratedClassesTest.testDumpDirIsFile(): success
      test LogGeneratedClassesTest.testDumpDirNotExist(): success
      test LogGeneratedClassesTest.testDumpDirNotWritable(): skip
      org.testng.SkipException: Posix not supported
      at LogGeneratedClassesTest.testDumpDirNotWritable(LogGeneratedClassesTest.java:171)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
      at org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
      at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
      at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
      at org.testng.TestRunner.privateRun(TestRunner.java:767)
      at org.testng.TestRunner.run(TestRunner.java:617)
      at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
      at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
      at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
      at org.testng.SuiteRunner.run(SuiteRunner.java:240)
      at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:51)
      at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:85)
      at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
      at org.testng.TestNG.run(TestNG.java:1030)
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:159)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746)
      at java.lang.Thread.run(Thread.java:724)
      test LogGeneratedClassesTest.testLogging(): success
      test LogGeneratedClassesTest.testLoggingException(): success
      test LogGeneratedClassesTest.testNotLogging(): success
      config LogGeneratedClassesTest.cleanup(): success

      ===============================================
      java/lang/invoke/lambda/LogGeneratedClassesTest.java
      Total tests run: 6, Failures: 0, Skips: 1
      ===============================================

      ----------System.err:(12/638)----------
      java.lang.Exception: failures: 1
      at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:162)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:483)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:746)
      at java.lang.Thread.run(Thread.java:724)

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

      result: Failed. Execution failed: `main' threw exception: java.lang.Exception: failures: 1

      Attachments

        Activity

          People

            henryjen Henry Jen
            amlu Amy Lu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: