[
https://issues.jboss.org/browse/AS7-5945?page=com.atlassian.jira.plugin.s...
]
Alexis Yerenkow commented on AS7-5945:
--------------------------------------
Here's a bit more info:
Running org.jboss.as.platform.mbean.PlatformMBeanResourceUnitTestCase
Nov 14, 2012 11:32:01 PM org.jboss.msc.service.ServiceLogger_$logger greeting
INFO: JBoss MSC version 1.0.2.GA
Tests run: 12, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 0.836 sec <<<
FAILURE!
Results :
Failed tests:
testThreadingMXBean(org.jboss.as.platform.mbean.PlatformMBeanResourceUnitTestCase):
thread-cpu-time-enabled is undefined
Tests run: 12, Failures: 1, Errors: 0, Skipped: 1
FreeBSD isThreadCpuTimeSupported
--------------------------------
Key: AS7-5945
URL:
https://issues.jboss.org/browse/AS7-5945
Project: Application Server 7
Issue Type: Feature Request
Environment: FreeBSD 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12
02:52:29 UTC 2012 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC
amd64
openjdk6/openjdk7
Reporter: Alexis Yerenkow
Platform Tests should be modified, since it's not respecting when
isThreadCpuTimeSupported = false (It continues run some test with
isThreadCpuTimeSupported, which produces Exceptions, and all test failed);
Simple test:
ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();
System.out.println("threadMXBean.isThreadCpuTimeSupported() = " +
threadMXBean.isThreadCpuTimeSupported());
System.out.println("threadMXBean.isThreadCpuTimeEnabled() = " +
threadMXBean.isThreadCpuTimeEnabled());
Result:
threadMXBean.isThreadCpuTimeSupported() = false
Exception in thread "main" java.lang.UnsupportedOperationException: Thread CPU
time measurement is not supported
at sun.management.ThreadImpl.isThreadCpuTimeEnabled(ThreadImpl.java:98)
at Test.main(Test.java:19)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira