Skip to content

Commit

Permalink
8271094: runtime/duplAttributes/DuplAttributesTest.java doesn't check…
Browse files Browse the repository at this point in the history
… exit code

Backport-of: 4812e53
  • Loading branch information
Andrew Lu committed Dec 29, 2023
1 parent 823b65a commit 43d4c50
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2021, 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 @@ -44,6 +44,7 @@ public static void runTest(String test, String result) throws Throwable {
"-cp", testsrc + File.separator + "test.jar", test);
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldContain("java.lang.ClassFormatError: Multiple " + result);
output.shouldNotHaveExitValue(0);
}

public static void main(String args[]) throws Throwable {
Expand Down

1 comment on commit 43d4c50

@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.