Skip to content

Commit 7a47dcb

Browse files
committed
8350786: Some java/lang jtreg tests miss requires vm.hasJFR
Reviewed-by: mdoerr Backport-of: d6d94472c21b1fa4839f548b85908967057c3f07
1 parent 186c4f0 commit 7a47dcb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/jdk/java/lang/Thread/ThreadSleepEvent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -24,6 +24,7 @@
2424
/**
2525
* @test
2626
* @summary Test that Thread.sleep emits a JFR jdk.ThreadSleep event
27+
* @requires vm.hasJFR
2728
* @modules jdk.jfr
2829
* @run junit ThreadSleepEvent
2930
*/

test/jdk/java/lang/Thread/virtual/JfrEvents.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* @test
2626
* @summary Basic test for JFR jdk.VirtualThreadXXX events
27-
* @requires vm.continuations
27+
* @requires vm.continuations & vm.hasJFR
2828
* @modules jdk.jfr java.base/java.lang:+open jdk.management
2929
* @library /test/lib
3030
* @run junit/othervm --enable-native-access=ALL-UNNAMED JfrEvents

0 commit comments

Comments
 (0)