Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
/ jdk17 Public archive

Commit

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

Reviewed-by: jiefu, dholmes
  • Loading branch information
iignatev committed Jul 22, 2021
1 parent 6a9ab6a commit 4812e53
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, 2020, 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 {
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(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 4812e53

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