< prev index next >
test/jdk/jdk/jfr/api/flightrecorder/TestIsAvailable.java
Print this page
rev 51054 : imported patch 9000013-aixDisableJFR-requires.patch
*** 26,38 ****
package jdk.jfr.api.flightrecorder;
import jdk.jfr.FlightRecorder;
import jdk.test.lib.Asserts;
! /*
* @test
* @key jfr
* @library /test/lib
* @run main/othervm -XX:+FlightRecorder jdk.jfr.api.flightrecorder.TestIsAvailable true
* @run main/othervm -XX:-FlightRecorder jdk.jfr.api.flightrecorder.TestIsAvailable false
* @run main/othervm jdk.jfr.api.flightrecorder.TestIsAvailable true
*/
--- 26,39 ----
package jdk.jfr.api.flightrecorder;
import jdk.jfr.FlightRecorder;
import jdk.test.lib.Asserts;
! /**
* @test
* @key jfr
+ * @requires vm.hasJFR
* @library /test/lib
* @run main/othervm -XX:+FlightRecorder jdk.jfr.api.flightrecorder.TestIsAvailable true
* @run main/othervm -XX:-FlightRecorder jdk.jfr.api.flightrecorder.TestIsAvailable false
* @run main/othervm jdk.jfr.api.flightrecorder.TestIsAvailable true
*/
< prev index next >