RFR: 8290180: Convert com/sun/management/UnixOperatingSystemMXBean/GetOpenFileDescriptorCount.sh to jtreg java version

Bill Huang duke at openjdk.org
Thu Jul 14 22:41:02 UTC 2022


On Thu, 14 Jul 2022 22:21:56 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

>> This is a task to convert shell tests to Java tests. The shell scripts to be removed are responsible for compiling Java files and running the tests on Linux systems. This functionality can be achieved with JTReg tag @requires (os.family=="linux").
>
> test/jdk/com/sun/management/UnixOperatingSystemMXBean/GetMaxFileDescriptorCount.java line 31:
> 
>> 29:  * @requires (os.family=="linux")
>> 30:  *
>> 31:  * @run main/othervm GetMaxFileDescriptorCount
> 
> is othervm required here?

No, it is not needed. I will remove it.

-------------

PR: https://git.openjdk.org/jdk/pull/9503


More information about the serviceability-dev mailing list