diff options
Diffstat (limited to 'test/901-hello-ti-agent/src/Main.java')
-rw-r--r-- | test/901-hello-ti-agent/src/Main.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/901-hello-ti-agent/src/Main.java b/test/901-hello-ti-agent/src/Main.java index 4d62ed3f5d..556e05b5d0 100644 --- a/test/901-hello-ti-agent/src/Main.java +++ b/test/901-hello-ti-agent/src/Main.java @@ -21,6 +21,9 @@ public class Main { if (checkLivePhase()) { System.out.println("Agent in live phase."); } + if (checkUnattached()) { + System.out.println("Received expected error for unattached JVMTI calls"); + } set(0); // OTHER set(1); // GC @@ -41,4 +44,5 @@ public class Main { private static native boolean checkLivePhase(); private static native void setVerboseFlag(int flag, boolean value); + private static native boolean checkUnattached(); } |