Skip to content

Commit

Permalink
8326525: com/sun/tools/attach/BasicTests.java does not verify AgentLo…
Browse files Browse the repository at this point in the history
…adException case

Backport-of: b8fc4186d59ce21e878c4de30983d7cacf69b7a5
  • Loading branch information
GoeLin committed Jan 20, 2025
1 parent 0d29267 commit 34fe097
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/jdk/com/sun/tools/attach/BasicTests.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -171,6 +171,7 @@ public static void main(String args[]) throws Exception {
System.out.println(" - Test: Load an agent that does not exist");
try {
vm.loadAgent("SilverBullet.jar");
throw new RuntimeException("AgentLoadException not thrown as expected!");
} catch (AgentLoadException x) {
System.out.println(" - AgentLoadException thrown as expected!");
}
Expand Down

1 comment on commit 34fe097

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.