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

[TESTBUG] TestJcmdDefaults.java: ouput should contain all content of jcmd/usage.out

XMLWordPrintable

    • svc
    • b107
    • Verified

      Caused by JDK-8149099

      10 failures of sun/tools/jcmd/TestJcmdDefaults.java in 2016/02/05 RT-Baseline for various of platforms.

      Note that the usage.out in latest hs-rt repo has this line

       If no options are given, lists Java processes (same as -p).

      but the output contains

       If no options are given, lists Java processes (same as -l).

      ----------System.out:(17/1080)----------
      [/export/home/aurora/CommonData/JDK_DIR/bin/jcmd -J-XX:+UsePerfData -h]
      Usage: jcmd <pid | main class> <command ...|PerfCounter.print|-f file>
         or: jcmd -l
         or: jcmd -h
                                                                        
        command must be a valid jcmd command for the selected jvm.
        Use the command "help" to see which commands are available.
        If the pid is 0, commands will be sent to all Java processes.
        The main class argument will be used to match (either partially
        or fully) the class used to start Java.
        If no options are given, lists Java processes (same as -l).
                                                                        
        PerfCounter.print display the counters exposed by this process
        -f read and execute commands from the file
        -l list JVM processes on the local machine
        -h this help

      ----------System.err:(17/1328)----------
      java.lang.RuntimeException: The ouput should contain all content of /export/home/aurora/CommonData/TESTBASE/jdk/test/sun/tools/jcmd/usage.out: expected true, was false
      at jdk.testlibrary.Asserts.fail(Asserts.java:540)
      at jdk.testlibrary.Asserts.assertTrue(Asserts.java:490)
      at TestJcmdDefaults.verifyOutputAgainstFile(TestJcmdDefaults.java:105)
      at TestJcmdDefaults.testJcmdUsage(TestJcmdDefaults.java:70)
      at TestJcmdDefaults.main(TestJcmdDefaults.java:56)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:520)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
      at java.lang.Thread.run(Thread.java:804)

            dsamersoff Dmitriy Samersoff
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: